Commit 59a024da authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

Fix bug with article object error

parent 7c597ff5
......@@ -48,7 +48,7 @@ class ExaPipeline(object):
print("UNIQUE")
article = self.get_article(item['url'])
text = article.text
tags = self.get_tags(article)
tags = self.get_tags(text)
news = self.insert_news(item, tags, text)
if spider.name == 'cb':
item['tags'] = article.tags
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment