Skip to content

Instantly share code, notes, and snippets.

@AhnSeongHyun
Created November 14, 2017 08:07
Show Gist options
  • Save AhnSeongHyun/0148e88f1b1d278178fdc374d3238ef5 to your computer and use it in GitHub Desktop.
Save AhnSeongHyun/0148e88f1b1d278178fdc374d3238ef5 to your computer and use it in GitHub Desktop.
import requests
headers = {
'Authorization': 'Basic YmVhdDpiZWF0X2FwcDswZWU4YTg0NjhmMmVjYjUzMzY2ZGM0MTA4NzUzZxxxxxxx',
'access-token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJCRUFUIiwiaWF0IjoxNTA5MzI1Mzk3LCJ1c2VyX2lkIjoiNVNzUUFkcnhST1NhUlVwMzVRTlBhZ3lQcmsxekk3YXJ5U3kvRldvT0hkOD0iLCJhdWQiOiJCRUFUX0FQUCJ9.z2HKLAazfWZQysOg4gZ64T2nfT7xMjVfsgvQscHN-BM'
}
r = requests.post('https://x.com/api/store/search', json=[], headers=headers)
print(r.elapsed.total_seconds())
print(r.headers)
print(r.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment