Skip to content

British Columbia political tweets, harvested daily. #bcpoli

Notifications You must be signed in to change notification settings

lclarko/bc-poli-tweet-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

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?

About

British Columbia political tweets, harvested daily. #bcpoli

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages