yhangf / PythonCrawler

:heartpulse:用python编写的爬虫项目集合

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

关于爬取官网照片的问题

PzoHua opened this issue · comments

@yhangf 你好,我在测试你的项目https://github.com/yhangf/PythonCrawler/blob/master/spiderFile/student_img.py
时遇到了困难。在代码第20行,我爬取的照片地址在学号后面,还有十位随机字符(数字与字母组合),即
student_url=url+201110000001PsqfH7TK9w
而不只是student_url=url+201110000001
请问这个怎么解决?第一次提问,如表达不到位,请谅解。谢谢!

commented

那你这个估计爬不了哦,如果你能获取到十位随机字符。

好的,谢谢你!