Tweets search 


In this article I will explain how to gather the different tweets according to key words in Batch mode. The data will be stored in CSV file.

For this, you should create an account in twitter developer. Then, you create a twitter app.
For this, follow these steps:
Connect to: https://apps.twitter.com/

clic on create new App.

provide the information about your APP. For the URL: you can put (http://www.example.com) just to validate the subscription

 now you can move to the Keys and Access Tokens tab. in order to generate the tokens and keys.





Now, you should install this library: TwitterSearch
Pip install TwitterSearch

In the code, you should paste the access token and keys that you get from your app above. (I've specified you where to paste them inside the code)

And, you can run this code : https://github.com/dihiaselma/Tweeter/blob/master/TweeterSearch.py 

Comments

Popular posts from this blog