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