- 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.
- You must have Twitter API keys.
- A Twitter Developer account and an approved application is the easiest way to obtain these.
- 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.
- 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?