twitterapi-python

Google Cloud Functions crashes without an error message

孤者浪人 提交于 2021-02-10 14:20:59
问题 I'm running an http triggered cloud function. The script was tested under Flask conditions, and ran perfectly. For an unknown reason, the cloud running suddenly stops and I get "Error: could not handle the request". When I checked the function logs, there was no error message or any indication for a crash. All I see is an output printed by the program, down to the point where it stops I allocated the maximum memory size, 4GB, plus I reduced the size of data in my request (shorter time span,

how to get only the text of the tweets into a json file

寵の児 提交于 2020-07-09 11:56:07
问题 So i am working on a project using twitterAPI for tweet collection of different keywords using specific longitude and latitudes. I crawled the data for my tweets the data is a list of dictionares for each key word containing fields such as: dict_keys(['created_at', 'id', 'id_str', 'text', 'truncated', 'entities', 'extended_entities', 'metadata', 'source', 'in_reply_to_status_id', 'in_reply_to_status_id_str', 'in_reply_to_user_id', 'in_reply_to_user_id_str', 'in_reply_to_screen_name', 'user',

how to get only the text of the tweets into a json file

这一生的挚爱 提交于 2020-07-09 11:56:07
问题 So i am working on a project using twitterAPI for tweet collection of different keywords using specific longitude and latitudes. I crawled the data for my tweets the data is a list of dictionares for each key word containing fields such as: dict_keys(['created_at', 'id', 'id_str', 'text', 'truncated', 'entities', 'extended_entities', 'metadata', 'source', 'in_reply_to_status_id', 'in_reply_to_status_id_str', 'in_reply_to_user_id', 'in_reply_to_user_id_str', 'in_reply_to_screen_name', 'user',