Twitter-Image-Scraper icon indicating copy to clipboard operation
Twitter-Image-Scraper copied to clipboard

A Simple Image scraper for Twitter

Twitter Image Scraper

This is a simple python script that uses Beautiful Soup 4 and Requests in order to scrape images from a Twitter user's Media Tab. Unfortunately due to the Twitter API, it isn't able to download images before a certain date.

Dependencies

To run Twitter Image Scraper, run the following pip command in your python environment:

pip install BeautifulSoup4 Requests tqdm

This Program uses PEP 572 (The Walrus Operator :=) so please make sure that you are running Python 3.8, otherwise it will not execute.

Running the Image Scraper

To run the Image Scraper, run the following command, with the Twitter Page you want to download from as replacing <User>.

Python3 main.py -U <User>

Screenshots/Video

asciicast Files when downloaded

License

This Project uses the GNU General Public License Version 3.