Scrapy SgmlLinkExtractor question

前端 未结 4 379
粉色の甜心
粉色の甜心 2021-01-12 01:23

I am trying to make the SgmlLinkExtractor to work.

This is the signature:

SgmlLinkExtractor(allow=(), deny=(), allow_domains=(), deny_domains=(), res         


        
4条回答
  •  温柔的废话
    2021-01-12 01:47

    You are missing comma after first element for "rules" to be a tuple..

    rules = (Rule(SgmlLinkExtractor(allow=('/careers/n.\w+', )), callback='parse', follow=True),)
    

提交回复
热议问题