Reptile use (picture)

This is the view of objects using crawler insect net ( https://stock.tuchong.com/ ) to take a picture of the home page, because the middle graph network worm uses encryption, but it is easy to find the law. Specific code as follows:

import requests
import re

request = requests.get('https://stock.tuchong.com/?source=extbaidukey2&utm_source=extbaidukey2')
date = request.text
img = re.findall('"imageId":"(.*?)","',date)
for i in img:
    response = requests.get('http://weiliicimg6.pstatp.com/weili/sm/'+i+'.webp')
    if response.status_code == 404:
        response = requests.get('http://icweiliicimg6.pstatp.com/weili/sm/' + i + '.webp')
    img_data = response.content

    f = open(i+'.jpg','wb')
    f.write(img_data)
    f.flush()

This is (between 100kb ~ 200kb) I climb down the picture is not a picture about

If interested friends and I talk about how to get high-definition comp

Guess you like

Origin www.cnblogs.com/cheng825/p/11227828.html