From 897fbbc8c541cf34239c650771277a0f0d7eafa3 Mon Sep 17 00:00:00 2001 From: alphardex <2582347430@qq.com> Date: Thu, 17 Jan 2019 10:32:27 +0800 Subject: [PATCH] delete fulltext for too slow --- Procfile | 2 +- rsshub/spiders/chuansongme/articles.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Procfile b/Procfile index efae4d8..fc272ab 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: flask db upgrade; gunicorn wsgi:app \ No newline at end of file +web: gunicorn wsgi:app \ No newline at end of file diff --git a/rsshub/spiders/chuansongme/articles.py b/rsshub/spiders/chuansongme/articles.py index 7385feb..ae15a08 100644 --- a/rsshub/spiders/chuansongme/articles.py +++ b/rsshub/spiders/chuansongme/articles.py @@ -8,10 +8,6 @@ def parse(post): item['title'] = post.css('a.question_link::text').extract()[-1].strip() link = f"{domain}{post.css('a.question_link::attr(href)').extract_first()}" item['link'] = link - try: - item['description'] = '\n'.join(fetch(link).css('p span::text').extract()) - except AttributeError: - pass return item