SHARE
TWEET

example

furas Aug 4th, 2018 60 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top