atiger77 / ScrapyProject

写一些爬虫代码,,喜欢可以star :blush:
14 stars 4 forks source link

jandan.. 报错啊.. #1

Open Homeless-Xu opened 7 years ago

Homeless-Xu commented 7 years ago

File "/Users/v/Desktop/ScrapyProject/JanDan/JanDan/spiders/jiandan_ooxx.py", line 18 rules = ( ^ IndentationError: unexpected indent

rules = (
    Rule(LinkExtractor(allow=('http://jandan.net/ooxx/page-\d+#comments', )), callback='parse_item', follow=True),
)

18行匹配网址.. 好像也没写错啊.
你那边可以??
我什么都没改 直接 scrapy crawl JanDan 是我电脑的问题??

atiger77 commented 7 years ago

我公司电脑运行也报你这个错,,之前用家里电脑调试没问题,,我回去再看下

atiger77 commented 7 years ago

可以了,,我重新把内容输出了下