{"id":18008284,"url":"https://github.com/clemapfel/douyin_scraper","last_synced_at":"2025-08-17T14:32:49.675Z","repository":{"id":122576530,"uuid":"589248275","full_name":"Clemapfel/douyin_scraper","owner":"Clemapfel","description":"take list of douyin videos, outputs filtered csv of metadata along with downloaded videos","archived":false,"fork":false,"pushed_at":"2023-01-18T16:02:13.000Z","size":31,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-11T14:51:01.147Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/Clemapfel.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-15T15:12:31.000Z","updated_at":"2025-06-14T20:43:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"0478cbd4-ed9a-4931-bad8-fdd237d1a687","html_url":"https://github.com/Clemapfel/douyin_scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Clemapfel/douyin_scraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clemapfel%2Fdouyin_scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clemapfel%2Fdouyin_scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clemapfel%2Fdouyin_scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clemapfel%2Fdouyin_scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clemapfel","download_url":"https://codeload.github.com/Clemapfel/douyin_scraper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clemapfel%2Fdouyin_scraper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270859240,"owners_count":24658173,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-30T01:18:12.852Z","updated_at":"2025-08-17T14:32:49.268Z","avatar_url":"https://github.com/Clemapfel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Douyin Scraper\n\n# Installation\n\n```\ngit clone https://github.com/Clemapfel/douyin_scraper.git\n```\n\n# Dependencies\n\n```\npip install json\npip install csv\npip install requests\npip install douyin-tiktok-scraper\n```\n\n# Usage\n\n### 1. Collect Video URLs\n\nPaste video urls into a file, henceforth assumed to be `douyin_scraper/video_ids.txt`.\n\nExample `video_ids.txt`:\n```\nhttps://www.douyin.com/video/7188679476946029885\nhttps://www.douyin.com/video/7188514977211305277\nhttps://www.douyin.com/video/7188463948864261434\n```\n### 2. Specify Metadata Filter\n\nPaste json keys into a file, henceforth assumed to be `douying_scraper/filter.txt`. Data for these keys will be extracted \nfrom the raw metadata into the output csv file.\n\nExample `filter.txt`:\n```\ndigg_count\nplay_count\nshare_count\n```\n\nFor a full list of allowed keys, run the script once and inspect one of the `raw.json` files in `douyin_scraper/out`.\n\n### 3. Execute Script\n\nIn your console, navigate to `douyin_scraper/`, then execute:\n\n```commandline\npython3 scrape.py video_ids.txt filter.txt \n```\n\nWhere `video_ids.txt` is the file from step 1, `filter.txt` the file from step 2, both of which are located in the folder same folder as `scrape.py`.\n\nLet the script run until the following appear:\n```\nProcess finished with exit code 0\n```\n\n### 4. Collect Output\n\nFor each script run, a new folder in `./out` will be created, each containing the videos and video metadata for all videos\nin `video_ids.txt`. Furthermore, an a `.csv` with the current time in the format `YYYY-MM-DD_hh:mm` in its name that contains\nthe values for all keys specified by `filter.txt` will appear in the same directory as the script.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclemapfel%2Fdouyin_scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclemapfel%2Fdouyin_scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclemapfel%2Fdouyin_scraper/lists"}