diff --git a/Dockerfile b/Dockerfile index e7fc5d6..f0d54e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,4 +28,5 @@ RUN apk add --no-cache gcc musl-dev libxml2 libxslt-dev RUN pip install -r /app/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple some-package --no-cache-dir # 启动nginx和uwsgi -ENTRYPOINT nginx -g "daemon on;" && uwsgi --ini /app/uwsgi.ini \ No newline at end of file +# ENTRYPOINT nginx -g "daemon on;" && uwsgi --ini /app/uwsgi.ini +ENTRYPOINT nginx -g "daemon on;" && gunicorn -w 4 wsgi:app \ No newline at end of file diff --git a/rsshub/spiders/chouti/search.py b/rsshub/spiders/chouti/search.py index 6e65d4e..e1882a4 100644 --- a/rsshub/spiders/chouti/search.py +++ b/rsshub/spiders/chouti/search.py @@ -8,8 +8,10 @@ domain = 'https://dig.chouti.com' def parse(post): item = {} item['title'] = re.sub(r'<[^>]*>', '', post['title']).strip() - item['description'] = post['title'] - item['link'] = 'https://dig.chouti.com/link/' + str(post['id']) + chouti_link = domain + '/link/' + str(post['id']) + item['description'] = post['title'] + '

' + f'抽屉链接' + + item['link'] = post['originalUrl'] item['pubDate'] = str(post['created_time'])[0:10] item['author'] = post['submitted_user']['nick'] return item