Skip to content

CorreyL/console-media-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Console Media Fetcher

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.

Twitter Developer API Account

A Twitter Developer API Account is required to access a Twitter account's feed:

Apply Here

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 Key

Installation

This script was created on Python 3.7.4.

python -m venv venv

POSIX

source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

Windows

venv\Scripts\python.exe -m pip install --upgrade pip
venv\Scripts\activate.bat
pip install -r requirements.txt

How To Use

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.

Formatting Code

This codebase uses black formatter to ensure code consistency across the .py files:

black main.py -l 80

About

Retrieves game console media uploaded to Twitter

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages