Giter Site home page Giter Site logo

danepod / twitter-likes-media-downloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reinhartp/twitter-likes-media-downloader

0.0 0.0 0.0 24 KB

python program to download all pictures/videos from a twitter account's liked tweets

License: MIT License

Python 100.00%

twitter-likes-media-downloader's Introduction

Twitter-Likes-Media-Downloader

Download all media from liked tweets from a Twitter account by using the Tweet IDs from a data export.

This is a fork of https://github.com/reinhartP/twitter-likes-media-downloader, which loaded the list of likes by querying Twitter's API. This had the limitation that only the newest ~3000 liked tweets could be fetched. The data export offered by Twitter however contains the IDs of all liked tweets, so we can use that to download the media of every liked tweet.

Instructions

  • Request a download of your Twitter data at https://twitter.com/settings/download_your_data

  • Create an application at https://developer.twitter.com, try to answer the questionnaire in a way that makes them accept your request

  • Replace the first line in data/like.js with [ and filter out the tweet ids with jq -r .[].like.tweetId like.js > like.txt

  • Install dependencies pip install -r requirements.txt

  • Generate base config file with python twitter_likes.py -g

  • Fill in config file config.json with API keys

  • Run with python twitter_likes.py -u "twitter username" --id-dump likes.txt

twitter-likes-media-downloader's People

Contributors

danepod avatar reinhartp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.