Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias Assign NameStore Num ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr AttributeLoad Call NameLoad SubscriptLoad NameLoad Index Str attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr AttributeLoad Call NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Assign AttributeStore NameLoad attr AttributeLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Return Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpAdd AttributeLoad BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If CompareLtE AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad ExceptHandler type NameLoad name NameStore body If Call AttributeLoad Call NameLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad orelse Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad kwarg body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call NameLoad NameLoad If CompareLt NameLoad NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr DictComp NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Slice Num If CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword BinOpAdd NameLoad Num keyword NameLoad keyword NameLoad NameLoad handlers ExceptHandler type NameLoad body TryExcept body Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword BinOpAdd NameLoad Num keyword NameLoad keyword NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list
N/A N/A 
Utilization:
    searcher = TwitterPager(
        TWITTER_CONSUMER_KEY,
        TWITTER_CONSUMER_SECRET,
        TWITTER_APP_CLIENT_ACCESS_TOKEN)
    for query in my_query_generator():
        searcher.paginated_search(
            page_handler=my_page_handler,
            # see birdy AppClient docs and Twitter API docs for params
            # to pass in here:
            since_id=my_since_id,
            q=query,
            count=100,
            lang='en'
        ) 
 N/A logging N/A time N/A urlparse birdy.twitter AppClient birdy.twitter TwitterRateLimitError TwitterClientError delorean parse epoch N/A DEFAULT_MAX_PAGES 10 TwitterPager N/A object N/A N/A Class to manage searches against the Twitter REST search API.
    Utilizes the birdy AppClient. Handles client reconnection for
    connection pool disconnects. Provides automated pagination.

    Manages the search API rate limit with limit info from the API itself --
    no need to pace your queries, but if using beyond the rate limit, your
    queries will get delayed as needed. __init__ N/A N/A self twitter_consumer_key twitter_consumer_secret twitter_app_client_access_token default_max_pages N/A DEFAULT_MAX_PAGES N/A N/A N/A self _client None N/A N/A self consumer_key twitter_consumer_key N/A N/A self consumer_secret twitter_consumer_secret N/A N/A self app_client_access_token twitter_app_client_access_token N/A N/A self default_max_pages default_max_pages N/A N/A self last_twitter_search None N/A N/A self rate_limit_remaining 1 N/A N/A self rate_limit_limit None N/A N/A self rate_limit_reset None N/A N/A self twitter_date None N/A N/A self first_request True N/A client N/A N/A self N/A N/A N/A N/A N/A self _client None N/A N/A N/A N/A logging debug Creating new Twitter client. N/A N/A self _client N/A AppClient N/A self consumer_key N/A self consumer_secret access_token N/A self app_client_access_token N/A N/A self _client N/A property reset_client N/A N/A self N/A N/A N/A Forces new HTTP connection session for AppClient. N/A N/A self _client None N/A extract_rate_limit N/A N/A self response N/A N/A N/A Extract rate limit info from response/headers.
        
        The rate limit Twitter API request response provides bad data in the
        headers, so check the payload first and fallback to headers for other
        request types. N/A N/A N/A data N/A N/A N/A N/A response data N/A resources N/A search N/A /search/tweets N/A N/A self rate_limit_remaining N/A data N/A remaining N/A N/A self rate_limit_limit N/A data N/A limit N/A N/A self rate_limit_reset N/A N/A epoch N/A data N/A reset datetime N/A N/A N/A N/A KeyError TypeError N/A N/A N/A self rate_limit_remaining N/A int N/A N/A response headers N/A x-rate-limit-remaining N/A N/A self rate_limit_limit N/A int N/A N/A response headers N/A x-rate-limit-limit N/A N/A self rate_limit_reset N/A N/A epoch N/A int N/A N/A response headers N/A x-rate-limit-reset datetime N/A N/A self twitter_date N/A N/A parse N/A N/A response headers N/A date datetime N/A N/A N/A logging debug N/A Twitter rate limit info:: rate-limit: %s, remaining: %s, reset: %s, current-time: %s N/A N/A self rate_limit_limit N/A self rate_limit_remaining N/A self rate_limit_reset N/A self twitter_date N/A fetch_rate_limit N/A N/A self N/A N/A N/A Send search rate limit info request to Twitter API. N/A response N/A N/A N/A N/A N/A N/A self client api application rate_limit_status get resources search N/A N/A N/A self extract_rate_limit response N/A N/A limit remaining reset N/A self rate_limit_limit N/A self rate_limit_remaining N/A self rate_limit_reset N/A wait_for_reset N/A N/A self N/A N/A N/A Requires header information to be current. N/A t N/A N/A N/A N/A self rate_limit_reset N/A self twitter_date seconds 1 N/A N/A N/A logging info N/A Waiting %d seconds for Twitter rate limit reset. t N/A N/A N/A time sleep t N/A search N/A N/A self N/A kwargs N/A N/A Passes kwargs to search.tweets.get of the AppClient.
        For kwargs requirements, see docs for birdy AppClient. N/A N/A self first_request N/A N/A N/A N/A self fetch_rate_limit N/A N/A self first_request False N/A N/A N/A self rate_limit_remaining 0 N/A N/A N/A N/A logging info Reached Twitter rate limit. N/A N/A N/A self wait_for_reset N/A N/A N/A response N/A N/A N/A N/A N/A N/A self client api statuses user_timeline get kwargs N/A N/A N/A logging debug N/A Received twitter search response: %s N/A str response N/A N/A N/A self extract_rate_limit response N/A response N/A N/A N/A TwitterRateLimitError N/A e N/A N/A N/A N/A logging warning Twitter rate limit exceeded. N/A N/A N/A self fetch_rate_limit N/A N/A N/A self wait_for_reset N/A N/A N/A self search kwargs N/A N/A TwitterClientError N/A e N/A N/A N/A N/A N/A str e startswith HTTPSConnectionPool N/A N/A N/A N/A logging debug Connection pool disconnect. Reconnecting. N/A N/A N/A self reset_client N/A N/A N/A self search kwargs N/A N/A e N/A paginated_search N/A N/A self page page_handler max_pages N/A 1 None None kwargs N/A N/A Issue search with AppClient up to max_pages.
        For kwargs requirements, see docs for birdy AppClient. N/A N/A max_pages None N/A N/A max_pages N/A self default_max_pages N/A response N/A N/A self search kwargs N/A page_handler N/A N/A N/A page_handler response N/A N/A page max_pages N/A N/A N/A N/A N/A N/A kwargs update N/A k v N/A N/A k v N/A N/A urlparse parse_qsl N/A N/A N/A N/A response data search_metadata next_results N/A 1 N/A N/A N/A int N/A kwargs N/A max_id N/A int N/A N/A kwargs get since_id 0 N/A N/A N/A N/A logging debug N/A Paginating query: %s N/A str kwargs N/A N/A N/A self paginated_search page N/A page 1 page_handler page_handler max_pages max_pages kwargs N/A N/A N/A AttributeError N/A N/A N/A N/A N/A kwargs N/A since_id N/A str N/A N/A N/A response data N/A -1 id N/A N/A N/A logging debug N/A Paginating query: %s N/A str kwargs N/A N/A N/A self paginated_search page N/A page 1 page_handler page_handler max_pages max_pages kwargs N/A N/A N/A IndexError N/A N/A N/A N/A logging debug IndexError, so stop N/A N/A N/A N/A logging debug reached max pages, so stop N/A N/A