Coder Social home page Coder Social logo

royspace / twitter-following-list-exporter Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 79 KB

Export your following list on Twitter to TXT, CSV, and HTML formats in case your Twitter/X account is suspended at no cost :)

License: MIT License

JavaScript 24.23% CSS 26.81% Python 31.43% HTML 17.53%
python csv export exporter follower following twitter twitter-api

twitter-following-list-exporter's Introduction

Twitter Following List Exporter

Buy Me A Coffee

Features

  • Export your following list on Twitter to TXT, CSV, and HTML formats in case your Twitter/X account is suspended at no cost :)

  • Easy to use and update the following list.

  • Easy to keep track in case your following changes username or is suspended

  • Save PFP image locally

  • Beautiful HTML for Visualization with isotope search and Mansory layout

Screenshot 2024-01-08 at 02 17 58

Requirements

Usage

  1. Install Dependencies:

    gallery-dl

    pip install gallery-dl

    tqdm

    pip install tqdm
  2. Clone the Repository

    git clone https://github.com/royspace/twitter-following-list-exporter.git
  3. Navigate to the Repository

    cd twitter-following-list-exporter
  4. Suggestion config.json file for gallery-dl

    • You must create a config.json file and enter your YourUsername and YourPassword to export your following list. For more details and instructions: click here
      {
          "extractor": {
              "twitter": {
                  "username": "YourUsername",
                  "password": "YourPassword",
                  "filename": "{author['name']}-{author['id']}-{tweet_id}-{num}-{date:?//%Y%m%d_%H%M%S}.{extension}",
                  "skip": "abort:2"
              }
          },
          "output": {
              "shorten": false
          }
      }
  5. Export to TXT, CSV and HTML file

  • Fill YourUsername

    gallery-dl -g https://twitter.com/YourUsername/following > twitter_following_list.txt
    gallery-dl --get-urls -g https://twitter.com/YourUsername/following > twitter_following_list_converted.txt
    python3 twitter-following-list-exporter.py
    python3 twitter-following-list-exporter-html.py
    python3 convert_v2.py
  • Run this command again to keep the file up to date

  • File will include:

Target_Url | Permanent_Profile_Link | date | description | favourites_count | followers_count | friends_count | id | listed_count | location | media_count | name | nick | profile_banner | profile_image | statuses_count | url | verified 291020178-65c62b17-f7f1-41b5-a36e-90f069fe98cf 293262295-f6ad7280-870f-4b03-aded-ec7c11b36ae2

Note

  • There may be failed URLs at the moment, copy and paste them to a CSV file to avoid showing them next time.
  • Ensure that the number displayed in the tqdm progress bar is correct.
  • There may be rate limits imposed by Twitter, so let the process run in the background.
  • Since this repository relies on gallery-dl to fetch data, if there are errors during the execution of the gallery-dl command, please report the issue to them instead of here.

Other scripts

  1. export-twitter-following-list by prinsss
  • Using a different approach by leveraging the Web API of Twitter itself.
  • Has raw JSON.
  • NOT easy to keep track in case your following changes username or is suspended.

Contributions

Contributions and improvements to the tool are welcome. Feel free to fork the repository, make enhancements, and submit pull requests.

Disclaimer

Please use this tool responsibly and ensure compliance with Twitter's terms of service and API usage policies.

twitter-following-list-exporter's People

Contributors

royspace avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.