Screen scraping: getting around “HTTP Error 403: request disallowed by robots.txt”

前端 未结 8 1122
借酒劲吻你
借酒劲吻你 2020-12-12 17:15

Is there a way to get around the following?

httperror_seek_wrapper: HTTP Error 403: request disallowed by robots.txt

Is the only way around

8条回答
  •  离开以前
    2020-12-12 17:48

    oh you need to ignore the robots.txt

    br = mechanize.Browser()
    br.set_handle_robots(False)
    

提交回复
热议问题