SHARE
TWEET

Untitled

a guest Nov 11th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2. import pandas as pd
  3. import numpy as np
  4.  
  5. data = requests.get('https://lightningnetworkstores.com/sites.json')
  6. data= data.json()
  7.  
  8.  
  9. timestamps = [entry.get('added', 1519419592) for entry in data]
  10. timestamps = sorted(timestamps)
  11. number = range(1,len(timestamps)+1)
  12.  
  13. export = pd.DataFrame([])
  14. export['instants'] = timestamps
  15. export['number'] = number
  16.  
  17. export.to_csv('adoption.csv', index=False)
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