-
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](https://private-user-images.githubusercontent.com/85507215/294780340-74157e60-d8ae-4f12-8c92-51a3aa017db1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4Mzg4ODksIm5iZiI6MTcyMzgzODU4OSwicGF0aCI6Ii84NTUwNzIxNS8yOTQ3ODAzNDAtNzQxNTdlNjAtZDhhZS00ZjEyLThjOTItNTFhM2FhMDE3ZGIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDIwMDMwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRlMTIzOTNjMDBiNWYxZTM0OGU0MWVjZTBiN2Y0ZjcwZGJjOTAwYjE5YTU1N2NlNzlkZTQyNmNhZjY5NTc5ZDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.G8kHUYhq5hvVpsQcB7_VNJYyi_gRgH2nI0dxZxRUtEg)
- Python 3.x
- gallery-dl
- tqdm
-
Install Dependencies:
gallery-dl
pip install gallery-dl
tqdm
pip install tqdm
-
Clone the Repository
git clone https://github.com/royspace/twitter-following-list-exporter.git
-
Navigate to the Repository
cd twitter-following-list-exporter
-
Suggestion
config.json
file for gallery-dl- You must create a
config.json
file and enter yourYourUsername
andYourPassword
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 } }
- You must create a
-
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
- 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.
- 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 and improvements to the tool are welcome. Feel free to fork the repository, make enhancements, and submit pull requests.
Please use this tool responsibly and ensure compliance with Twitter's terms of service and API usage policies.