mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-19 23:16:48 +00:00
format cls timestamp string
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import requests
|
||||
from rsshub.utils import DEFAULT_HEADERS
|
||||
|
||||
import arrow
|
||||
|
||||
def parse(post):
|
||||
item = {}
|
||||
item['title'] = post['title'] if post['title'] != '' else post['content']
|
||||
item['description'] = post['content']
|
||||
item['link'] = post['shareurl']
|
||||
item['pubDate'] = post['ctime']
|
||||
item['pubDate'] = arrow.get(int(post['ctime'])).isoformat()
|
||||
return item
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user