What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-10 02:28:19
add bearer token in python request
import requests auth_token='sdfghjkloerdtfyguhiopfghjkl;fghjkl' hed = {'Authorization': 'Bearer ' + auth_token} data = {'app' : 'aaaaa'} url = 'https://api.xy.com' response = requests.post(url, json=data, headers=hed) print(response) print(response.json()) Add solution -
Python 2021-11-08 09:41:28
python json web request
import requests url = 'http://maps.googleapis.com/maps/api/directions/json' params = dict( origin='Chicago,IL', destination='Los+Angeles,CA', waypoints='Joplin,MO|Oklahoma+City,OK', sensor='false' ) resp = requests.get(url=url, params=p... Add solution -
Other 2021-11-03 09:54:05
scrape sitemap
import requests from urllib.parse import urlencode list_of_urls = ['http://quotes.toscrape.com/page/1/', 'http://quotes.toscrape.com/page/2/'] for url in list_of_urls: params = {'api_key': API_KEY, 'url': url} response = requests.get('http://ap... Add solution -
Javascript 2021-11-02 15:09:12
choropleth map of india which shows current date confirmed cases in every state json api python.
import pandas as pdimport warningsimport jsonimport requestsimport numpy as npimport datetimefrom datetime import timedeltaimport seaborn as sbimport matplotlib.pyplot as plt Add solution