!! Im wont be able to work on this for around a month so don't expect any updates soon !!
A tool for locating malicious links on youtube.com
- custom search terms
- automatic link extraction
- views both video descriptions and comments for links
- can ignore links that are deemed safe
And more if I feel like adding it!
Ensure you have python and pip installed, on linux use the package manager and on windows. See https://www.python.org/downloads/
Then install the requirements
pip install -r requirements.txt
Then you need to get an api key for youtube. See https://developers.google.com/youtube/v3/getting-started
Then set the api key as an environment variable
Bash/zsh
export YOUTUBE_API_KEY='YOUR KEY HERE'
Fish
set -x YOUTUBE_API_KEY 'YOUR KEY HERE'
you should see your key printed if you run
echo $YOUTUBE_API_KEY
run run.py and select 4. Create Database
then 1. Automated
to initialize the database
The file src/cron.py is a slimed version of run.py that contains only what is needed to run and process a search. At this point in time changing the options requires editing the file manually, However it is quite clear what needs to be changed.
After changing the options run the crontab command
In this example the script will run once every hour
0 * * * * /path/to/python /path/to/cron.py
In this example the script will run once every day at 1PM
0 13 * * * /path/to/python /path/to/cron.py
- inbuilt database querying
- make usage guide
- improved processing
- easy way to add more links to the safe list
- inbuilt way to set up API key
- lower false positive rate
- AUR package
These features are things I intend on adding, but I make no promises.