python-based monitor for cybersecurity related insights/announcements and breaches.
This is intended as a raspberry pi based solution, so the build process will focus on the pi. I'm using Tweepy (https://realpython.com/twitter-bot-python-tweepy/) so that will be the python library of choice for this project, likely with a side of pandas and some sort of summary/text processing library, and soemthing that can send email. We shall see.
Start is pretty standard.
-
Get a pi. Also a pie. v3+ for the pi, and your favorite variety for the pie.
-
image SD card (SSH enabled), place card in pi, do not place card in pie.
-
power up the pi, do not apply power to pie.
-
SSH into pi. Most pie SSH attempts fail. This is expected behavior.
-
Eat pie. Do not eat pi.
-
Install Python: -> sudo apt-get install python
-
Install python virtual environment -> mkdir tweepy-bots -> cd tweepy-bots -> apt-get install python3-venv -> sudo python3 -m venv venv -> source./venv/bin/activate
-
Install Tweepy -> pip install tweepy
-
Create requirements.txt file (for the app dependencies, we'll need this later) -> pip freeze > requirements.txt
-
Create Twitter developer account at https://developer.twitter.com (You'll need an existing twitter account to own the dev account)
-
Create a twitter application - give it a name - give it a description - give it a URL (oddly, this is required but since bots don't actually need it you can put almost any site you own here) - give it a use-case description - You will get a Client ID and a Client Secret. SAVE THEM LIKE THEY WERE ENDANGERED RAPBID MAN-EATING OTTERS. Seriously, locked away in a safe place.
-
Create Authentication credentials on the twitter apps page (https://developer.twitter.com/en/apps) - Clicking "Details" will get you to the screen you need to create Keys and Tokens. - write them down/Print them/tatoo them onto your arm in saskatoonberry syrup. No, wait, don't do that last one. The Queen does not fancy Saskatoon Berries.