Skip to content

Commit

Permalink
去掉特殊的空白符
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris-code committed Jul 8, 2021
1 parent e39b381 commit 928e196
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Thread-2|2021-02-09 14:55:11,373|request.py|get_response|line:283|DEBUG|
body = {'timeout': 22, 'stream': True, 'verify': False, 'headers': {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36'}}

<Response [200]>
Thread-2|2021-02-09 14:55:11,610|parser_control.py|run|line:415|DEBUG| parser 等待任务 ...
Thread-2|2021-02-09 14:55:11,610|parser_control.py|run|line:415|DEBUG| parser 等待任务...
FirstSpider|2021-02-09 14:55:14,620|air_spider.py|run|line:80|INFO| 无任务,爬虫结束
```

Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Thread-2|2021-02-09 14:55:11,373|request.py|get_response|line:283|DEBUG|
body = {'timeout': 22, 'stream': True, 'verify': False, 'headers': {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36'}}

<Response [200]>
Thread-2|2021-02-09 14:55:11,610|parser_control.py|run|line:415|DEBUG| parser 等待任务 ...
Thread-2|2021-02-09 14:55:11,610|parser_control.py|run|line:415|DEBUG| parser 等待任务...
FirstSpider|2021-02-09 14:55:14,620|air_spider.py|run|line:80|INFO| 无任务,爬虫结束
```

Expand Down
6 changes: 3 additions & 3 deletions feapder/core/parser_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ def run(self):
requests = self._collector.get_requests(setting.SPIDER_TASK_COUNT)
if not requests:
if not self.is_show_tip:
log.debug("parser 等待任务 ...")
log.debug("parser 等待任务...")
self.is_show_tip = True

# log.debug('parser 等待任务 {}...'.format(tools.format_seconds(self._wait_task_time)))
# log.debug('parser 等待任务{}...'.format(tools.format_seconds(self._wait_task_time)))

time.sleep(1)
self._wait_task_time += 1
Expand Down Expand Up @@ -444,7 +444,7 @@ def run(self):
requests = self._memory_db.get()
if not requests:
if not self.is_show_tip:
log.debug("parser 等待任务 ...")
log.debug("parser 等待任务...")
self.is_show_tip = True

time.sleep(1)
Expand Down

0 comments on commit 928e196

Please sign in to comment.