{"id":25195134,"url":"https://github.com/siongui/tiktokgo","last_synced_at":"2025-05-08T02:45:47.187Z","repository":{"id":54820390,"uuid":"341332525","full_name":"siongui/tiktokgo","owner":"siongui","description":"TikTok in Go","archived":false,"fork":false,"pushed_at":"2021-03-11T15:56:12.000Z","size":36,"stargazers_count":14,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-31T16:53:04.681Z","etag":null,"topics":["go","golang","tiktok","webscraping"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/siongui.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2021-02-22T20:45:53.000Z","updated_at":"2025-03-10T03:51:12.000Z","dependencies_parsed_at":"2022-08-14T03:50:26.595Z","dependency_job_id":null,"html_url":"https://github.com/siongui/tiktokgo","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/siongui%2Ftiktokgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siongui%2Ftiktokgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siongui%2Ftiktokgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siongui%2Ftiktokgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siongui","download_url":"https://codeload.github.com/siongui/tiktokgo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252989940,"owners_count":21836665,"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":["go","golang","tiktok","webscraping"],"created_at":"2025-02-10T00:50:14.466Z","updated_at":"2025-05-08T02:45:47.170Z","avatar_url":"https://github.com/siongui.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"========\ntiktokgo\n========\n\n.. image:: https://img.shields.io/badge/Language-Go-blue.svg\n   :target: https://golang.org/\n\n.. image:: https://godoc.org/github.com/siongui/tiktokgo?status.svg\n   :target: https://godoc.org/github.com/siongui/tiktokgo\n\n.. image:: https://github.com/siongui/tiktokgo/workflows/Test%20Package/badge.svg\n    :target: https://github.com/siongui/tiktokgo/blob/master/.github/workflows/build.yml\n\n.. image:: https://goreportcard.com/badge/github.com/siongui/tiktokgo\n   :target: https://goreportcard.com/report/github.com/siongui/tiktokgo\n\n.. image:: https://img.shields.io/badge/license-Unlicense-blue.svg\n   :target: https://raw.githubusercontent.com/siongui/tiktokgo/master/UNLICENSE\n\n\n**tiktokgo** downloads user avatar photo and videos.\n\nCurrently this package can\n\n- download user avatar photos and latest 5 video items (with watermark) without\n  login if the user account is not private.\n- download video item (with watermark) by the item URL.\n\nVisit `example \u003ctiktokdl/example/\u003e`_ directory for examples.\n\n\nTested on:\n\n  - `Ubuntu 20.10`_\n  - `Go 1.16`_\n\n\nImportant Tricks\n++++++++++++++++\n\nAccording to README in `drawrowfly/tiktok-scraper`_, the video play/download\naddress is binded to the **tt_webid_v2** cookie value. To download the video\nsuccessfully, the same headers/cookies must be used both when access API or\nmetadata and when access/download videos.\nThe following three are necessary part (values copied from README in\n`drawrowfly/tiktok-scraper`_ for illustration purpose):\n\n.. code-block:: txt\n\n  headers: {\n    \"user-agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36\",\n    \"referer\": \"https://www.tiktok.com/\",\n    \"cookie\": \"tt_webid_v2=689854141086886123\"\n  },\n\n\nUNLICENSE\n+++++++++\n\nReleased in public domain. See UNLICENSE_.\n\n\nReferences\n++++++++++\n\n.. [1] | `github tiktok - Google search \u003chttps://www.google.com/search?q=github+tiktok\u003e`_\n       | `github tiktok - DuckDuckGo search \u003chttps://duckduckgo.com/?q=github+tiktok\u003e`_\n       | `github tiktok - Ecosia search \u003chttps://www.ecosia.org/search?q=github+tiktok\u003e`_\n       | `github tiktok - Qwant search \u003chttps://www.qwant.com/?q=github+tiktok\u003e`_\n       | `github tiktok - Bing search \u003chttps://www.bing.com/search?q=github+tiktok\u003e`_\n       | `github tiktok - Yahoo search \u003chttps://search.yahoo.com/search?p=github+tiktok\u003e`_\n       | `github tiktok - Baidu search \u003chttps://www.baidu.com/s?wd=github+tiktok\u003e`_\n       | `github tiktok - Yandex search \u003chttps://www.yandex.com/search/?text=github+tiktok\u003e`_\n\n.. _Go: https://golang.org/\n.. _Ubuntu 20.10: https://releases.ubuntu.com/20.10/\n.. _Go 1.16: https://golang.org/dl/\n.. _UNLICENSE: https://unlicense.org/\n.. _drawrowfly/tiktok-scraper: https://github.com/drawrowfly/tiktok-scraper\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiongui%2Ftiktokgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiongui%2Ftiktokgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiongui%2Ftiktokgo/lists"}