pablouser1 / TikScraperPHP

Wrapper for TikTok API
https://packagist.org/packages/pablouser1/tikscraper
MIT License
66 stars 20 forks source link

Question about 'verify_fp' cookie #20

Open eugenecooper opened 2 months ago

eugenecooper commented 2 months ago

Could you please clarify what is the intended way of using 'verify_fp'? Where do I get it from and in what cases it must be set?

Thanks!

eugenecooper commented 2 months ago

So, I think, I found where to take it from in a regular browser:

 {
    name: 's_v_web_id',
    value: 'verify_m045p6an_QqRY18qK_vPWc_4hGZ_BhX5_CLLenwZif3gs3',
    domain: '.tiktok.com',
    path: '/',
    expires: -1,
    httpOnly: false,
    secure: true,
    sameSite: 'None'
  }

However, the question is how do I get that cookie from TikScraperPHP? I couldn't find a way to do that except from adding some getters to TikScraperPHP, so that I could access the Selenum object and get browser cookies from there.

Also, if someone knows that, is that verify cookie is tied to the current IP or/and the device id?