Module Import alias Import alias Import alias Assign NameStore Str Assign NameStore Dict Str NameLoad Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr BinOpMod NameLoad NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr NameLoad attr decorator_list Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad Str NameLoad Str Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr Str Assign NameStore Dict Str Str Str NameLoad NameLoad Str Assign NameStore Call NameLoad Str NameLoad Assign NameStore Dict For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Print Call NameLoad NameLoad Str Assign NameStore ListLoad For NameStore NameLoad body Print Str NameLoad Assign NameStore Dict Str Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Continue Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Dict Str Str Str NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index Str For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr body If CompareIsNot NameLoad NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore DictComp NameLoad IfExp CompareIs Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A requests N/A json N/A csv N/A API_KEY 34ed16e6b5f645c5a3cba39c75ee80b2 N/A HEADERS N/A X-Access-Key API_KEY N/A OUTER_SCHEMA N/A async data False None N/A API_TEMPLATE https://api.engine.priceonomics.com/v1/apps/%s N/A OUTPUT_FILE_NAME xkcd_results_test.csv api_request N/A N/A app_endpoint request_data N/A N/A N/A values N/A N/A OUTER_SCHEMA copy N/A N/A values N/A data request_data N/A N/A N/A N/A N/A requests post N/A API_TEMPLATE app_endpoint headers HEADERS data N/A N/A json dumps values json N/A N/A url http://xkcd.com/archive N/A data N/A url country obey_robots user_agent url US True Priceonomics loves XKCD/1.0 N/A response N/A api_request fetch data N/A html N/A N/A N/A N/A response N/A data N/A content encode utf-8 N/A data N/A url content pattern url html ^http://xkcd.com/[0-9]+/ N/A links_dict N/A api_request links data N/A comics N/A N/A link N/A N/A links_dict N/A data N/A links N/A N/A N/A comics N/A N/A link N/A url N/A link N/A text N/A urls N/A sorted N/A N/A comics keys key N/A N/A N/A x N/A N/A int N/A N/A N/A x split / N/A 3 N/A N/A len urls URLs found N/A social_results N/A N/A url urls N/A N/A Collecting social data for: url N/A data N/A url N/A N/A url encode utf-8 N/A result N/A api_request social data N/A N/A N/A social_results append result N/A rows N/A N/A result social_results N/A N/A N/A N/A result N/A error False N/A N/A N/A url N/A N/A result N/A data N/A url N/A row N/A url comic_name timestamp url N/A comics N/A url N/A result N/A timestamp N/A N/A provider metrics N/A N/A N/A N/A result N/A data N/A stats items N/A N/A N/A metrics None N/A N/A N/A metric value N/A N/A metrics items N/A N/A N/A row N/A N/A %s_%s N/A provider metric value N/A row_fixed N/A k N/A N/A N/A type v unicode N/A N/A v encode utf-8 v N/A N/A k v N/A N/A row items N/A N/A N/A rows append row_fixed N/A N/A open OUTPUT_FILE_NAME wb f N/A N/A keys N/A url comic_name timestamp twitter_share_count reddit_comment_total reddit_score_total reddit_submission_count linkedin_share_count google+_share_count stumbleupon_views facebook_comment_count facebook_like_count facebook_share_count pinterest_share_count N/A dict_writer N/A N/A csv DictWriter f keys N/A N/A N/A dict_writer writeheader N/A N/A N/A dict_writer writerows rows