mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-14 23:16:50 +00:00
modify pub date format of bbwc realtime
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import json
|
import json
|
||||||
import requests
|
import requests
|
||||||
|
import arrow
|
||||||
from rsshub.utils import DEFAULT_HEADERS
|
from rsshub.utils import DEFAULT_HEADERS
|
||||||
|
|
||||||
domain = 'https://api.bbwc.cn'
|
domain = 'https://api.bbwc.cn'
|
||||||
@@ -10,7 +11,8 @@ def parse(post):
|
|||||||
item['title'] = post['title']
|
item['title'] = post['title']
|
||||||
item['description'] = post['content']
|
item['description'] = post['content']
|
||||||
item['link'] = post['link']
|
item['link'] = post['link']
|
||||||
item['pubDate'] = post['inputtime']
|
item['pubDate'] = arrow.get(int(post['inputtime'])).isoformat()
|
||||||
|
item['author'] = 'Bloomberg'
|
||||||
return item
|
return item
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user