Skip to content

Downloads images/photos uploaded on twitter by a given user.

License

Notifications You must be signed in to change notification settings

mhbosch/Twitter-Image-Downloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Image Downloader

Downloads images/photos uploaded on twitter by a given user.

Dependencies

This tool uses the Python tweepy library and wget package.

You can install requirements using requirements.txt.

pip install -r requirements.txt

You will also need to create an app account on https://dev.twitter.com/apps to get authorization tokens

  1. Sign in with your Twitter account
  2. Create a new app account
  3. Fill necessary details
  4. Generate a new OAuth token with those permissions

Following these steps will create 4 tokens that you will need to authenticate your account.

How to Use

Edit the API_Tokens.py file and add all the 4 tokens you got in the previous step and save. Run the script by python twitter_image_downloader.py

Enter the user's twitter handle (@twitter_handle) you want to download images from, followed by max. number of tweets you want to search for (0 for all/max. allowed twwets by Twitter's API). The images are downloaded inside a folder named twitter_images, in the folder named user_handle.

About

Downloads images/photos uploaded on twitter by a given user.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%