furas

example

Aug 4th, 2018
76
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2. import datetime
  3.  
  4. r = requests.get('https://data.livefyre.com/bs3/v3.1/bskyb.fyre.co/363166/MTEwNzUxMzc=/init')
  5.  
  6. data = r.json()
  7.  
  8. for item in data['headDocument']['content']:
  9.     data = datetime.datetime.fromtimestamp(item['content']['createdAt'])
  10.     print(data.strftime('%Y.%m.%d %H:%M'))
  11.     #print('createdAt:', item['content']['createdAt'])
  12.     #print('bodyHtml:', item['content']['bodyHtml'])
  13.     print('---')
RAW Paste Data