{"id":18003959,"url":"https://github.com/simon987/yt-metadata","last_synced_at":"2025-03-26T10:30:59.720Z","repository":{"id":80438349,"uuid":"141622901","full_name":"simon987/yt-metadata","owner":"simon987","description":"Script to import youtube-dl metadata to PostgreSQL","archived":false,"fork":false,"pushed_at":"2018-08-13T15:59:46.000Z","size":7,"stargazers_count":14,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T15:00:27.429Z","etag":null,"topics":["metadata","postgresql"],"latest_commit_sha":null,"homepage":null,"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/simon987.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":"2018-07-19T19:33:14.000Z","updated_at":"2024-07-31T18:59:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"02f11f53-c256-4310-8a29-71878d72f1d9","html_url":"https://github.com/simon987/yt-metadata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon987%2Fyt-metadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon987%2Fyt-metadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon987%2Fyt-metadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon987%2Fyt-metadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simon987","download_url":"https://codeload.github.com/simon987/yt-metadata/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245636069,"owners_count":20647898,"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":["metadata","postgresql"],"created_at":"2024-10-30T00:13:02.020Z","updated_at":"2025-03-26T10:30:59.713Z","avatar_url":"https://github.com/simon987.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yt-metadata\nScript to import [youtube-dl](https://github.com/rg3/youtube-dl) metadata to PostgreSQL.    \nThe actual `.jpg` files for the thumbnails are saved into the database as byte arrays (Only the **default** \nthumbnail saved by **youtube-dl**)\n\n### Scraping metadata using youtube-dl\nThis tool expects the files to be in the format that this bash script will output:\n```bash\nid=\"$1\"\nmkdir \"$id\"; cd \"$id\"\nyoutube-dl -v --print-traffic --restrict-filename --write-description --write-info-json --write-annotations --write-thumbnail --all-subs --write-sub --skip-download --ignore-config --ignore-errors --geo-bypass --youtube-skip-dash-manifest https://www.youtube.com/watch?v=$id\n```\n\n### Setup instructions:\n* Make sure you have PostgreSQL version **\u003e=9.5** installed    \n* Create the database and schema with the tool of your choice using `schema.sql`\n* Change the directory in `import.py` so it points to the location of your youtube metadata\n* Run `import.py`\n\n### Schema:\n![schema](https://user-images.githubusercontent.com/7120851/42967825-72bc88fe-8b6f-11e8-81a7-f8e7e17077d8.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon987%2Fyt-metadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimon987%2Fyt-metadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon987%2Fyt-metadata/lists"}