Skip to content

huiling-y/tweet_scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Requirements

  • tweepy

Usage

Run from terminal, where ARG1 is the twitter id, ARG2 is the number of tweets to scrape

$ python3 twitter_query.py ARG1 ARG2

Note: add your own consumer_key, consumer_secret, access_token, access_token_secret in the file

following is an example:

$ python3 twitter_query.py BarackObama 3 03:25 PM, Mar 19, 2020: The best part of my job was meeting people like this—ready to make a selfless act in a time of need. Many Americans are already making deep sacrifices to keep our communities healthy, but if you’re able to, consider helping those hit the hardest. https://t.co/CdrMsC6VXF

03:25 PM, Mar 19, 2020: .@rgay and @SheaSerrano are using their feeds to directly support people in need—and helping shift our ideas about how to approach giving. https://t.co/1JHPUYEiKV

03:25 PM, Mar 19, 2020: In my old neighborhood, the @BSAllianceChi established a crisis pantry to provide food and essential items for particularly vulnerable queer and trans residents on the South and West sides of Chicago. https://t.co/ilyDlj3ago

About

Scrape tweets by id

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages