cool hit counter Sister figure sites vary in anti-crawl measures, nay Python has over the wall shaving too!_Intefrankly

Sister figure sites vary in anti-crawl measures, nay Python has over the wall shaving too!


This development environment Python 3.6 latest version, never say I'm outdated again! The anti-crawl measures of all the famous girls on the web are different, so we have to take different "over the wall shaving" to solve it! Be able to develop your Python anti anti-crawl skills.

Thoughts.

Run the program and go to the folder query

Get a picture of the character per page

After the download is complete, switch to the requests.get method to obtain the content of the image, this request method is convenient to set the header file headers, headers inside a Referer parameter, must be set for this image into the address, review the element code can be seen

Line 431, really not for show, just to make it clearer and it does work!

Using Chrome headless browser requires Chrome 60+, chromedriver is fine.


Recommended>>
1、CCTV praises Haikou the use of big data to cure lazy government
2、My Big Data Dad
3、Technology is changing lives and of course technology is all around
4、Chengdu Beauty Expo comes to an end but the excitement of Hongqiang never ends
5、What is the blockchain hierarchy

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号