Home > other >  Crawl subject network questions for help
Crawl subject network questions for help

Time:09-24

Ask, how to crawl subject online exam and try the url address is: http://www.zxxk.com/soft/12958988.html? SPM=a1. B4. C3 d27, I am a layman, recently a little look a little bit of the crawler, try to crawl, but I found that there are two problems, first the paper preview only a few pages, the second is like the image format, so I try to use the url address of the first picture climbed in the first picture is not successful, urge you to help me improve the code, and then export to PDF


The import requests

Path="./bcde. JPG "
# test first page picture url address
Url="https://img.zxxk.com/2/? Key=63 ffcbc1bba83dea329566fce179d0c0. SVG
"R=requests. Get (url)
Print (r.s tatus_code)

With the open (path, 'wb) as f:
F.w rite (r.c ontent)


R.s tatus_code==200 normal

CodePudding user response:


Difficulty coefficient is larger, the inside of the url key value is md5 generated, encryption

CodePudding user response:

Well, ok, thank you,

CodePudding user response:

Non-public resource data, not directly
  • Related