当前位置:网站首页>Reptile learning winter vacation series (2)

Reptile learning winter vacation series (2)

2022-07-04 11:19:00 Kosisi

Crawler learning - Continued above


This time I learned a lot , Not to mention how many skills you master , But it is an eye opener ;
Learning programming for so long , I think for a layman like me , Xiaobai said , Enough is enough. , Will use ctrl+c and ctrl+v, Will change the code , You can understand most of the operations you have learned .

Anti theft chain -Referer Parameters

Referer What is a parameter , Regard it as a means of anti climbing . He asks you to visit this url Time is from the specified one url Visit from , You cannot directly access this link . So we only need to put the source url Pass the past as a parameter
 Insert picture description here

This sentence is in the request header in the packet capturing tool Referer: https://www.pearvideo.com/video_1674904, The tutorial says that this is the anti-theft chain , This refers to the source of the video link , That is, click the link first , Then you can visit the video link .
And then through json() Become a dictionary to deal with
So the key to the anti-theft chain is to see Referer This parameter .

原网站

版权声明
本文为[Kosisi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202141408559721.html