Joke Collection Website - Blessing messages - Xiaohongshu API data interface collection
Xiaohongshu API data interface collection
Basic environment
1. A rooted Android phone. We recommend a certain Mi mobile phone here. Unlocking other models of mobile phones is troublesome.
2. Xiaohongshu apk. Keep a few more to observe the differences between different versions.
3. As a packet capture tool, I use Charles, which I am used to. As long as you can capture packets, there are no requirements.
4. Windows system
Start capturing packets
As usual, install the certificate, capture packets, and after finishing the process, I found that the packet capture Sometimes, it keeps prompting: network unavailable, network abnormality, etc. At this time, it immediately occurred to my mind that a certain app I had crawled before had the same situation. Then try to install the certificate into the system directory:
How to install the certificate into the system directory:
Use the OpenSSL command to use the charles certificate: openssl x509 -inform PEM -subject_hash_old -in charles .pem will generate c957050g. If it is a cer certificate, use DER
Execute the command: cp charles.pem c957050g.0
Connect the mobile phone to the computer with a USB cable, and execute the following commands in sequence: adb push c957050g.0 /sdcard/
adb shell
su
mount -o rw, remount /system
mv /sdcard/c957050g .0 /system/etc/security/cacerts/
chmod 644 /system/etc/security/cacerts/c957050g.0
reboot
openssl and cp The command can install GitBash, and it can be completed with the help of GitBash
The adb command requires the adb tool to be installed. Installation method is by yourself Baidu
After completing the above operations, capture the packet again and capture the data normally. Perform analysis interface.
All data interfaces are basically under /api/sns/.
The old version is basically under /api/sns/.
Search interface: /api /sns/v8/search/notes?keyword=E9A699E5A588E584BF63amp; filters=amp; sort=amp; page=1amp; page_size=20amp; source=explore_feedamp; search_id=927A522C26DC8FD699971F1B1C1F6838amp; platform=Androidamp; deviceId=560c6663- a66f-3aab-aff8 -a8fe7bc48809amp;device_fingerprint=20180711115937dab00272f54a61a24dbf8e788810c0ac01ea060ac16b8048amp;device_fingerprint1=20180711115937dab00272f54a61a24dbf 8e788810c0ac01ea060ac16b8048amp; versionName=5.24.1amp; channel=Sogouamp; sid=session.1220794269578290029amp; lang=zh-Hansamp; t=1536298303amp; sign=dd2764c4258e12db80fbe5df1 1e01af0
Note details interface :/api/sns/v1/note/feed?note_id=6208778400000000210350c9amp; page=1amp; has_ads_tag=falseamp; num=5amp; fetch_mode=1amp; source=exploreamp; ads_track_id=onlineswing_PAGETIME10_6208bb170000000001026d83 4029sgq68pxlmfug0s4pfq6amp; from_rec_local=false
Comment interface: /api/sns/v5/note/comment/list?note_id=6208778400000000210350c9amp; start=621b4f88000000001302bb82amp; num=15amp; show_priority_sub_comments=0amp; source=exploreamp; top_comment_id=amp; shake_user=0
After repeated analysis and verification, its core parameters are: shield: This parameter is mainly related to url, xy-common-params, xy-platform-info, data, user-agent and other parameters.
sid: Adjust the /api/sns/v1/user/activate interface and get it by post submission.
The data interface is as follows:
It has been packaged and the collection interface is stable. If you need to get more data, please feel free to add me for discussion
286493339 p>
- Previous article:Does it take 48 hours to leave Dongguan? The latest notice of Dongguan East Railway Station
- Next article:Happy wedding
- Related articles
- Today, I received a multimedia message that my mobile phone was infected with a virus, saying that it was a Trojan virus that CCTV once said could make my mobile phone send messages inexplicably and d
- Why are the fonts of the two Apple phones different? How to set them up?
- How to be a boss? -Common mistakes made by business owners in southern Fujian
- How to write a copy of my son's birthday in a circle of friends and give my 26-year-old son a birthday wish?
- Try to translate. . Wait online! Extra points. .
- Can Xue Lianfangfei receive a red envelope?
- Jiangxi Shangrao Vaccine Notification SMS
- New Year's Eve greetings to classmates
- 2022 unit Spring Festival party activity plan
- Greetings from friends of the opposite sex in the morning.
1. Greeting messages from friends of the opposite sex in the morning
1, you always work off and on, and you never succeed continu