This repository contains code for a script to help users automatically download media (i.e. videos and photos) uploaded to Twitter via their game consoles.
A Twitter Developer API Account is required to access a Twitter account's feed:
With the account, you should have 4 tokens, which needs to be placed into a
tokens.yaml file as follows:
access_token: # Twitter Access Token
access_token_secret: # Twitter Access Token Secret
api_key: # Twitter API Key
api_secret_key: # Twitter API Secret KeyThis script was created on Python 3.7.4.
python -m venv venvsource venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txtvenv\Scripts\python.exe -m pip install --upgrade pip
venv\Scripts\activate.bat
pip install -r requirements.txt
Once you have downloaded all the dependencies and set up your
API tokens in tokens.yaml, run:
python main.py
And all the media files from the specified Twitter account will be downloaded.
This codebase uses black formatter
to ensure code consistency across the .py files:
black main.py -l 80