Module ImportFrom alias alias alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias alias alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str 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 NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Expr Call NameLoad Str Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If BoolOpAnd UnaryOpNot NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword BoolOpOr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr If NameLoad body Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body For NameStore AttributeLoad NameLoad attr body If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body If CompareGtE Call NameLoad BinOpAdd NameLoad NameLoad NameLoad body Return BinOpAdd NameLoad NameLoad If BoolOpAnd NameLoad CompareIs NameLoad NameLoad body Return Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword BinOpSub NameLoad Num keyword NameLoad keyword NameLoad keyword BinOpAdd NameLoad NameLoad orelse Return BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore BoolOpOr AttributeLoad NameLoad attr Str If CompareNotIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BoolOpOr AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad If AttributeLoad NameLoad attr body Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore ListLoad AttributeLoad NameLoad attr orelse Assign NameStore ListLoad AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If CompareLt NameLoad BinOpSub Call NameLoad NameLoad Num body Expr Call NameLoad NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body If BoolOpAnd UnaryOpNot NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return orelse If UnaryOpNot NameLoad body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad orelse For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad BinOpAdd AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore BinOpMod NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Call NameLoad AttributeLoad NameLoad attr NameStore body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If CompareGt SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num NameLoad body Return ListLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareLtE SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore NameLoad Break If CompareIsNot NameLoad NameLoad body If CompareLtE SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num NameLoad body Return ListLoad If CompareIsNot NameLoad NameLoad body If CompareGt NameLoad NameLoad body Return ListLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareLtE SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore BinOpSub NameLoad Num Break Assign NameStore ListComp Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad BinOpAdd NameLoad Num Return SubscriptLoad NameLoad Slice NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr keyword Str decorator_list decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad
N/A __future__ print_function unicode_literals absolute_import N/A atexit N/A collections N/A json N/A os N/A sys settings CONSUMER_KEY CONSUMER_SECRET ACCESS_TOKEN ACCESS_TOKEN_SECRET COUNT_PER_GET MEDIA_SIZES PROGRESS_FORMATTER TEST_DATA utils download create_directory cli parse_args parallel parallel_download increment read_since_ids set_max_ids N/A twitter TwitterPhotos N/A object N/A __init__ N/A N/A self user list_slug outdir num parallel increment size exclude_replies test N/A None None None None False False None False False N/A N/A 
        :param user: The screen_name of the user whom to return results for
        :param list_slug: The slug identifying the list owned by the `user`
        :param outdir: The output directory (absolute path)
        :param num: Number of most recent photos to download from each
            related user
        :param parallel: A boolean indicating whether parallel download is
            enabled
        :param increment: A boolean indicating whether to download only new
            photos since last download
        :param: Photo size represented as a string (one of `MEDIA_SIZES`)
        :param: A boolean indicating whether to exlude replies tweets
        :param test: A boolean indicating whether in test mode
         N/A N/A self user user N/A N/A self list_slug list_slug N/A N/A self outdir outdir N/A N/A self num num N/A N/A self parallel parallel N/A N/A self increment increment N/A N/A self size size N/A N/A self exclude_replies exclude_replies N/A N/A self test test N/A N/A N/A self test N/A N/A N/A self api N/A N/A twitter Api consumer_key CONSUMER_KEY consumer_secret CONSUMER_SECRET access_token_key ACCESS_TOKEN access_token_secret ACCESS_TOKEN_SECRET N/A N/A N/A self api N/A TestAPI N/A N/A self auth_user None N/A N/A self photos N/A N/A N/A self max_ids N/A N/A N/A self since_ids N/A N/A N/A self _downloaded 0 N/A N/A self _total 0 N/A get N/A N/A self count since_id silent N/A None None False N/A N/A 
        Get all photos from the user or members of the list
        :param count: Number of tweets to try and retrieve. If None, return
            all photos since `since_id`
        :param since_id: An integer specifying the oldest tweet id
         N/A N/A silent N/A N/A N/A print Retrieving photos from Twitter API... N/A N/A self auth_user N/A N/A N/A self verify_credentials screen_name N/A N/A self since_ids N/A read_since_ids N/A self users N/A user N/A self users N/A N/A N/A self increment N/A N/A since_id N/A N/A N/A self since_ids get user N/A photos N/A N/A self load user user count count since_id since_id num N/A self num N/A N/A N/A self photos N/A user N/A photos N/A N/A self num N/A N/A self _total N/A len N/A N/A self photos N/A user N/A N/A N/A photos N/A user N/A self max_ids N/A N/A N/A N/A self max_ids N/A user N/A N/A self photos N/A load N/A N/A self user count max_id since_id num photos N/A None None None None None None N/A N/A N/A photos None N/A N/A photos N/A N/A statuses N/A N/A N/A self api GetUserTimeline screen_name user count N/A count COUNT_PER_GET max_id max_id since_id since_id exclude_replies N/A self exclude_replies N/A statuses N/A N/A min_id N/A N/A statuses N/A -1 id N/A max_id N/A N/A statuses N/A 0 id N/A N/A N/A N/A self max_ids setdefault user max_id N/A fetched_photos N/A N/A s statuses N/A N/A m N/A s media N/A N/A N/A N/A m N/A type photo N/A N/A t N/A N/A m N/A id N/A m N/A media_url N/A N/A N/A fetched_photos append t N/A N/A num None N/A N/A N/A N/A len N/A photos fetched_photos num N/A N/A N/A photos fetched_photos N/A N/A statuses N/A count None N/A N/A N/A N/A self load count None user user max_id N/A min_id 1 since_id since_id num num photos N/A photos fetched_photos N/A N/A N/A photos fetched_photos N/A download N/A N/A self size N/A None N/A N/A N/A size None N/A N/A size N/A N/A self size large N/A N/A size MEDIA_SIZES N/A N/A N/A Exception N/A Invalid media size %s size N/A user N/A self photos N/A N/A d N/A N/A N/A os path join N/A N/A self outdir user N/A N/A create_directory d N/A N/A N/A self _download_photos N/A N/A self photos N/A user user d size N/A N/A set_max_ids N/A self max_ids N/A users N/A N/A self N/A N/A N/A members None N/A N/A self list_slug N/A N/A owner N/A N/A self user N/A self auth_user N/A _members N/A N/A N/A self api GetListMembers list_id None slug N/A self list_slug owner_screen_name owner N/A members N/A N/A member screen_name N/A member _members N/A N/A N/A self user N/A N/A members N/A N/A self user N/A N/A members N/A N/A self auth_user N/A members N/A property verify_credentials N/A N/A self N/A N/A N/A N/A N/A N/A self api VerifyCredentials N/A print_urls N/A N/A self N/A N/A N/A user N/A self photos N/A N/A photos N/A N/A self photos N/A user N/A N/A i photo N/A enumerate photos N/A N/A line N/A %s %s %s N/A user N/A photo N/A 0 N/A photo N/A 1 N/A N/A i N/A N/A len photos 1 N/A N/A N/A print line N/A N/A N/A N/A N/A sys stdout write line N/A _download_photos N/A N/A self photos user outdir size N/A N/A N/A N/A self increment N/A N/A N/A N/A photos N/A user N/A self since_ids N/A N/A msg N/A No new photos from %s since last downloads. user N/A N/A N/A N/A sys stdout write msg N/A N/A N/A N/A photos N/A N/A msg N/A No photos from %s. user N/A N/A N/A N/A sys stdout write msg N/A N/A N/A self parallel N/A N/A N/A parallel_download photos user size outdir N/A N/A photo photos N/A N/A media_url N/A photo N/A 1 N/A N/A N/A self _print_progress user media_url N/A N/A download media_url size outdir N/A N/A self _downloaded 1 N/A _get_progress N/A N/A self user media_url N/A N/A N/A d N/A media_url user index total N/A N/A N/A os path basename media_url user N/A N/A self _downloaded 1 N/A self _total N/A progress N/A PROGRESS_FORMATTER d N/A progress N/A _print_progress N/A N/A self user media_url N/A N/A N/A N/A N/A N/A sys stdout write N/A 
%s N/A N/A self _get_progress user media_url N/A N/A N/A N/A sys stdout flush N/A N/A TestAPI N/A object N/A N/A 
    Test API interface that use mock data instead of hitting the
    Twitter API
     N/A STATUSES statuses.json N/A Status N/A N/A collections namedtuple Status N/A id media N/A Credentials N/A N/A collections namedtuple Credentials N/A screen_name __init__ N/A N/A self N/A args kwargs N/A N/A N/A self _statuses None N/A N/A N/A self _loads N/A _loads N/A N/A self N/A N/A N/A N/A open N/A test_data N/A self STATUSES f N/A N/A N/A self _statuses N/A N/A json loads N/A N/A f read N/A GetUserTimeline N/A N/A self N/A kwargs N/A N/A count N/A N/A N/A kwargs get count 200 N/A since_id N/A N/A kwargs get since_id N/A N/A since_id None N/A N/A since_id N/A int since_id N/A max_id N/A N/A kwargs get max_id N/A N/A max_id None N/A N/A max_id N/A int max_id N/A _start 0 N/A _end N/A len N/A self _statuses N/A N/A max_id None N/A N/A N/A N/A N/A N/A self _statuses N/A -1 N/A 0 max_id N/A N/A N/A N/A N/A i status N/A enumerate N/A self _statuses N/A N/A N/A N/A status N/A 0 max_id N/A N/A _start i N/A N/A N/A since_id None N/A N/A N/A N/A N/A N/A self _statuses N/A 0 N/A 0 since_id N/A N/A N/A N/A N/A max_id None N/A N/A N/A since_id max_id N/A N/A N/A N/A N/A i status N/A enumerate N/A self _statuses N/A N/A N/A N/A status N/A 0 since_id N/A N/A _end N/A i 1 N/A N/A statuses N/A N/A N/A self Status id N/A s N/A 0 media N/A s N/A 1 N/A s N/A N/A self _statuses N/A _start N/A _end 1 N/A N/A statuses N/A count N/A VerifyCredentials N/A N/A self N/A N/A N/A N/A N/A self Credentials screen_name test N/A N/A test_data N/A N/A filename N/A N/A N/A N/A N/A N/A os path join TEST_DATA filename N/A new_line N/A N/A N/A N/A N/A N/A N/A N/A sys stdout write N/A main N/A N/A N/A N/A N/A args N/A parse_args N/A twphotos N/A TwitterPhotos user N/A args user list_slug N/A args list_slug outdir N/A args outdir num N/A args num parallel N/A args parallel increment N/A args increment size N/A args size exclude_replies N/A args exclude_replies N/A N/A args print N/A N/A N/A N/A twphotos get silent True N/A N/A N/A twphotos print_urls N/A N/A N/A N/A twphotos get N/A N/A N/A twphotos download N/A N/A N/A N/A atexit register new_line