Skip to content

Commit

Permalink
F: 使crawl支持多参传递
Browse files Browse the repository at this point in the history
  • Loading branch information
littlemo committed May 12, 2018
1 parent 29da0cc commit ae1353f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moear_spider_zhihudaily/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def crawl(self, *args, **kwargs):
try:
crawler = CrawlerScript()
# 调试时可指定明确日期参数,如:date='20180423'
crawler.crawl(output_file=temp.name)
crawler.crawl(output_file=temp.name, *args, **kwargs)

temp.seek(0)
content = json.loads(temp.read(), encoding='UTF-8')
Expand Down

0 comments on commit ae1353f

Please sign in to comment.