mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-14 07:26:44 +00:00
show chouti original url
This commit is contained in:
@@ -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
|
||||
# ENTRYPOINT nginx -g "daemon on;" && uwsgi --ini /app/uwsgi.ini
|
||||
ENTRYPOINT nginx -g "daemon on;" && gunicorn -w 4 wsgi:app
|
||||
@@ -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'] + '<br /> <br />' + f'<a href="{chouti_link}" target="_blank">抽屉链接</a>'
|
||||
|
||||
item['link'] = post['originalUrl']
|
||||
item['pubDate'] = str(post['created_time'])[0:10]
|
||||
item['author'] = post['submitted_user']['nick']
|
||||
return item
|
||||
|
||||
Reference in New Issue
Block a user