Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

python-script-to-csv

Simple python script to pull data from twitter to csv file.

how it works

clone this repo https://github.com/agilsaputra/python-script-to-csv
sign in twitter account and sign up twitter dev https://developer.twitter.com/en/docs/twitter-api
replace this api to yours in tweet.py

consumer_key = 'YOUR_CONSUMER_KEY'     
consumer_secret = 'YOUR_CONSUMER_SECRET'  
access_token = 'YOUR_ACCESS_TOKEN'    
access_token_secret = 'YOUR_ACCESS_TOKEN_SECRET'

assumed you have installed python3 or python2
install pip
install tweepy library from cli pip install tweepy
run tweet.py in cli python3 tweet.py
then you got .csv file

refrences by 'Standard search API' you can modify parameter (add words query, date(limited 1 weeks), or change location)

https://developer.twitter.com/en/docs/twitter-api/v1/tweets/search/api-reference/get-search-tweets

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages