Home > Software engineering >  The crawler one piece manga help me to look at the great god
The crawler one piece manga help me to look at the great god

Time:09-17

The import requests
List=[' a ', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j' and 'k', 'l', 'm', 'n', 'o']
Print (list [1])
Url="https://prod-api.ishuhui.com/comics/detail? Id=11495 '
Headers={' the user-agent ':' Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 '}

Res=requests. Get (url, headers=headers)
PIC=res. Json ()
Pic1=PIC [' data '] [' contentImg]
I=0
While I & lt; 13:
Url_0=pic1 [I] [' url ']

Res1=requests. Get (url_0)
# print (type (p))
The list [I]=res1. Content
Print (type (the list [I]))

S=open (' list [I]. PNG ', 'wb)
S. rite, list [I])
I=I + 1
S.c lose ()
Why the last can only be afraid of to a page, rather than 12 pages
  • Related