In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "how to obtain cookies". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Analysis.
The Chinese name of Cookie is a small text file, which refers to the data (usually encrypted) stored on the user's local terminal (Client Side) by some websites in order to identify the user.
It is sometimes used in the plural form Cookies, which refers to the data (usually encrypted) stored on the user's local terminal by some websites in order to identify the user and perform session tracking.
The cookies of Douyin core is the sessionID value, which can be nested into the Cookie in the headers of the API to make requests.
At present, there are three ways to obtain ck:
(1)。 Cookies is obtained by scanning the code on the web.
(2)。 Obtain cookies through the account and password of Douyin on app
(3)。 Obtain the cookies through the verification code on the app side
1. Web scan code acquisition
Through Douyin enterprise management platform: https://e.douyin.com/site/
Bag grab analysis
Cdn.nlark.com/yuque/0/2020/png/97322/1607044985708-b1587872-7313-4860 af93murad0a914ad038.pngaf914ad038.pngaf914ad038.
The red mark is base64 picture, save it locally and open it, which is the QR code for login.
Then the real-time request for the QR code status, the data.status of the packet
Field status new unscanned scanned scanned to confirm login confirmed confirmed login part of the code screenshot
2. Log in with the account password to obtain Cookie (to protect privacy, please understand) grab the packet analysis
The request is POST. Encrypt mobile and password in the request body. If you crack mobile and password, you can request the session value in the cookies after login.
Go directly to the code
The returned cookies can be directly nested into the headers header of the request for other APIs, so that you can perform operations such as likes and followers.
Third, send CAPTCHA to log in to obtain Cookie capture packet analysis
The red mark is to send YZ to 10690032183903 for verification.
After clicking to log in, send the verification API to confirm that the login is successful. The red mark is marked with the verify_ tick value at the time of login to verify.
CAPTCHA status
Field status auth_failed did not send verification code directly to the code
Just nest the session_key into the Cookie in headers
This is the end of "how to get cookies". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.