{"id":13567632,"url":"https://github.com/NotCompsky/scrape-twitter","last_synced_at":"2025-04-04T02:32:29.818Z","repository":{"id":217534108,"uuid":"279326603","full_name":"NotCompsky/scrape-twitter","owner":"NotCompsky","description":"Utilities for scraping twitter, integrated into tagem","archived":false,"fork":false,"pushed_at":"2020-07-13T14:58:33.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-09T12:02:51.420Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NotCompsky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-07-13T14:32:16.000Z","updated_at":"2021-11-19T07:59:37.000Z","dependencies_parsed_at":"2024-01-17T02:52:05.800Z","dependency_job_id":"ce35f9fb-1ab5-40c5-9626-f1139f958fa3","html_url":"https://github.com/NotCompsky/scrape-twitter","commit_stats":null,"previous_names":["notcompsky/scrape-twitter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotCompsky%2Fscrape-twitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotCompsky%2Fscrape-twitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotCompsky%2Fscrape-twitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotCompsky%2Fscrape-twitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotCompsky","download_url":"https://codeload.github.com/NotCompsky/scrape-twitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213528164,"owners_count":15600827,"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":[],"created_at":"2024-08-01T13:02:37.077Z","updated_at":"2024-08-01T13:19:16.880Z","avatar_url":"https://github.com/NotCompsky.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Twitter Scraper\n\nVery lightweight (in terms of dependencies) scraper that uses the Twitter private API to scrape posts, and attached media files.\n\nIt is integrated into [tagem](https://github.com/NotCompsky/tagem), such that posts and media recorded in this scraper are trivially accessible from tagem.\n\n# Dependencies\n\nMySQL client and server\nPython 3 and pymysql\n\nNOTE: I don't think this uses any MySQL-specific SQL code, so other SQL servers should be easily supportable.\n\n# Installation\n\nOn Ubuntu, PyMySQL does not seem to generally work when installed from the pip package manager.\n\n\tsudo apt install python3-pymysql\n\n# Configuration\n\nOpen Twitter on your browser, take a note of your cookies etc, and place those values into `scripts/config.template`. Then move scripts/config.template to `scripts/config`.\n\nThen open up your favourite SQL client, and run the commands listed in `sql/init-tables.sql` to create the necessary tables.\n\n# Example Usage\n\n\tDL_TWEET_MEDIA=1 ./get-tweet https://twitter.com/BBCNews/status/1282683947139440644\n\t\n\t./add-job SkyNews \"British~~~News Corporation\" FALSE\n\t\n\t./scraper\n\n# Contributing\n\nThis is extraordinarily bad code. I'm aware. It was a prototype that went so smoothly I never needed to clean it up.\n\nContributions are welcome; there is no doubt a lot of areas for possible improvements, for instance awful inefficiencies (that the user won't notice due to the rate limit anyway, but are still a waste of CPU cycles).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNotCompsky%2Fscrape-twitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNotCompsky%2Fscrape-twitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNotCompsky%2Fscrape-twitter/lists"}