Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否出一个生成抖音cookie的程序 #353

Open
xxwangkaimin opened this issue Apr 12, 2024 · 7 comments
Open

能否出一个生成抖音cookie的程序 #353

xxwangkaimin opened this issue Apr 12, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@xxwangkaimin
Copy link

抖音cookie时常失效,有没有快速生成cookie的功能

@xxwangkaimin xxwangkaimin added the enhancement New feature or request label Apr 12, 2024
@fgprodigal
Copy link
Contributor

document.cookie
  .split(";")
  .filter((e) =>
    [
      "ttwid",
      "IsDouyinActive",
      "home_can_add_dy_2_desktop",
      "dy_swidth",
      "dy_sheight",
      "stream_recommend_feed_params",
      "strategyABtestKey",
      "msToken",
      "passport_csrf_token",
      "passport_csrf_token_default",
      "bd_ticket_guard_client_web_domain",
      "GlobalGuideTimes",
      "odin_tt",
      "n_mh",
      "_bd_ticket_crypt_doamin",
      "_bd_ticket_crypt_cookie",
      "LOGIN_STATUS",
      "__security_server_data_status",
      "store-region",
      "store-region-src",
      "d_ticket",
      "my_rd",
      "stream_player_status_params",
      "__live_version__",
      "live_use_vvc",
      "volume_info",
      "FORCE_LOGIN",
      "xgplayer_user_id",
      "s_v_web_id",
      "download_guide",
      "SEARCH_RESULT_LIST_TYPE",
      "bd_ticket_guard_client_data",
      "tt_scid",
      "msToken",
      "__ac_nonce",
      "__ac_signature"
    ].includes(e.split("=")[0].trim())
  )
  .join(";");

@xxwangkaimin
Copy link
Author

@fgprodigal 这段代码要在抖音网站里面去执行的,有没有那种直接在自己网站生成的

@fgprodigal
Copy link
Contributor

@fgprodigal 这段代码要在抖音网站里面去执行的,有没有那种直接在自己网站生成的

cookie不去访问人家网站咋拿

@xxwangkaimin
Copy link
Author

@fgprodigal 也对,哈哈哈

@Evil0ctal
Copy link
Owner

可以用浏览器自动化解决,去一下web driver特征。

@Smecta
Copy link

Smecta commented Apr 26, 2024

ttwid没有拿到

@Evil0ctal
Copy link
Owner

看一下视频教程:

【【开源项目教程】教你一分钟内部署属于你自己的抖音和TikTok数据接口,可以下载视频,做数据分析等。-哔哩哔哩】 https://b23.tv/MTGT71Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants