Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 1.33 KB

README.md

File metadata and controls

17 lines (13 loc) · 1.33 KB

BC Politics Tweet Scraper

Summary

  • This is a simple Python script that utilizes Tweepy to scrap #bcpoli tweets from the previous day.
  • The script only pulls three tweet attributes, though you can add more, if you're intersted in other data.
  • The script can be easily modified to pull tweets relating to any string, just change "#bcpoli" in the for loop.
  • By default, the csv file this script generates will be in the same directory as the script. You can modify the csvFile variable to change this.

Requirements

  • You must have Twitter API keys.
  • It's a good idea to review the restricted uses of the Twitter APIs, as there are many terms that you have to accept, especially if you plan on redistributing any twitter data.

Why?

  • For the sake of personal projects, of course!
  • Why not build an (arguably) interesting data set, while simultaneously working on your Python skills, learning about the Twitter API, using that Raspberry Pi you bought and fighting with cron?