测试积点老人 发表于 2018-12-28 16:49:27

scrapy 报错:Missing scheme in request url: h

大多是url或者start_url格式问题。。以下格式供参考:start_urls = ['http://irm.cninfo.com.cn/ircs/interaction/allQuestionsForSzse.do']
def parse(self, response):
    item = 0
    func_dict = {"0": self.parser_html}
    url = "http://irm.cninfo.com.cn/ircs/interaction/allQuestionsForSzse.do"

    yield scrapy.Request(url, callback=func_dict)

Miss_love 发表于 2021-1-5 14:46:59

支持分享
页: [1]
查看完整版本: scrapy 报错:Missing scheme in request url: h