{"id":28222614,"url":"https://github.com/dante4rt/twitter-media-scrapper","last_synced_at":"2025-06-11T18:31:55.290Z","repository":{"id":220840546,"uuid":"752723838","full_name":"dante4rt/Twitter-Media-Scrapper","owner":"dante4rt","description":"Automate media downloads from Twitter posts.","archived":false,"fork":false,"pushed_at":"2024-02-05T16:21:19.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T07:15:07.017Z","etag":null,"topics":["automated","bot","download","media","scrapper","twitter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dante4rt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-04T16:24:56.000Z","updated_at":"2024-07-30T17:19:26.000Z","dependencies_parsed_at":"2024-02-04T19:46:58.597Z","dependency_job_id":"574e913e-a735-44d0-b272-3fbebfbb4f57","html_url":"https://github.com/dante4rt/Twitter-Media-Scrapper","commit_stats":null,"previous_names":["dante4rt/twitter-media-scrapper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dante4rt/Twitter-Media-Scrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dante4rt%2FTwitter-Media-Scrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dante4rt%2FTwitter-Media-Scrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dante4rt%2FTwitter-Media-Scrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dante4rt%2FTwitter-Media-Scrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dante4rt","download_url":"https://codeload.github.com/dante4rt/Twitter-Media-Scrapper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dante4rt%2FTwitter-Media-Scrapper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259316572,"owners_count":22839523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automated","bot","download","media","scrapper","twitter"],"created_at":"2025-05-18T07:13:40.150Z","updated_at":"2025-06-11T18:31:55.285Z","avatar_url":"https://github.com/dante4rt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitter Media Scrapper\n\nThis Node.js script automates the process of downloading media (currently images and gifs) from specified Twitter posts. It utilizes Puppeteer with a Stealth Plugin to navigate and render Twitter pages, Cheerio for parsing HTML and selecting media elements, Axios for handling downloads, and provides feedback with colorful console output.\n\n## Features\n\n- Automates downloading of images and gifs from Twitter posts.\n- Stealth browsing with Puppeteer to mimic a real user session.\n- Image selection with Cheerio for efficient parsing.\n- Direct image downloading into a specified folder using Axios.\n- Colorful console output for enhanced user interaction.\n\n## Prerequisites\n\nEnsure you have Node.js installed on your system to use this script. You can download Node.js from the [official website](https://nodejs.org/).\n\n## Installation\n\n### Clone the Repository\n\nFirst, clone the `Twitter-Media-Scrapper` repository to your local machine:\n\n```sh\ngit clone https://github.com/dante4rt/Twitter-Media-Scrapper.git\ncd Twitter-Media-Scrapper\n```\n\n### Install Dependencies\n\nInstall the necessary dependencies by running the following command in your terminal:\n\n```sh\nnpm install\n```\n\n## Usage\n\nTo start the script, execute:\n\n```sh\nnode main.js\n```\n\nFollow the prompts in your terminal:\n\n1. Enter the full URL of the Twitter post from which you want to download images.\n2. The script will then process the page and download all images marked with `alt=\"Image\"` into the `downloads` folder.\n\n## Customization\n\n- Modify the `downloadFolder` variable in the script to change the destination folder for the downloaded images.\n- The script can be further customized or extended to support downloading other types of media, such as videos.\n\n## Disclaimer\n\nThis script is provided for educational and personal use. Always respect Twitter's Terms of Service, and ensure you have the right to download and use the content.\n\n## Contributing\n\nContributions to enhance the functionality of this script, including adding support for video downloads or improving efficiency, are welcome. Please feel free to fork the repository and submit pull requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdante4rt%2Ftwitter-media-scrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdante4rt%2Ftwitter-media-scrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdante4rt%2Ftwitter-media-scrapper/lists"}