Skip to content
Snippets Groups Projects
Commit c1b6bed8 authored by Anton Gusev's avatar Anton Gusev
Browse files

change directory for writing stats, images

parent bffb3431
No related branches found
No related tags found
2 merge requests!5Develop,!4Develop
......@@ -5,6 +5,6 @@ class StatsWriter(object):
def close_spider(self, spider):
stats = spider.crawler.stats.get_stats()
with open('../statistics.txt', 'w') as f:
with open('/statistics.txt', 'w') as f:
for k, v in stats.items():
f.writelines('{}: {}\n'.format(k, v))
......@@ -68,7 +68,7 @@ ROBOTSTXT_OBEY = True
# Configure item pipelines
# See https://doc.scrapy.org/en/latest/topics/item-pipeline.html
IMAGES_STORE = '../image'
IMAGES_STORE = './image'
ITEM_PIPELINES = {
'pipelines.DatabaseWriter.DatabaseWriter': 101,
'pipelines.StatsMailer.StatsMailer': 999,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment