Forum Discussion
syafiq
7 years agoAce
Hi RaphaelB,
Here is the code that i've used. The sample given is not working with me. just change to your url , client id and token
import requests startdate = '20180810' enddate = '20180815' headers = { 'client-id': 'your client id', } params = (('fromDate', startdate),('toDate', enddate),) response = requests.get('https://api.lithium.com/lsi-data/v1/data/export/community/your url', headers=headers, params=params, auth=('token', '')) open('LSIBulkData'+startdate+'-'+enddate+'.csv', 'wb').write(response.content)
Related Content
- 6 years ago
- 4 years ago
- 9 years ago