python爬取页面时,一个URL无法访问导致报错,然后跳过这个报错继续抓取?
黄舟
黄舟 2017-04-18 10:21:58
0
1
530

1.抓取到一个错误的URl

2.我的比蠢笨的办法:


黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
伊谢尔伦

There is a header in curl that can be set to return. If the data obtained is not in 200 status, just skip the processing.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template