What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-09-19 18:01:03
python requests firefox headers
import requests url = 'http://www.ichangtou.com/#company:data_000008.html' headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'} response = requests.get(url, ... Add solution -
Other 2021-09-18 21:04:03
hotel nigeria api for developers
import requests url = "https://hotels-apis.herokuapp.com/" payload = {} files = {} headers= {} response = requests.request("GET", url, headers=headers, data = payload, files = files) print(response.text.encode('utf8')) Add solution -
Python 2021-09-18 18:06:03
get table wikipedia
import requests from bs4 import BeautifulSoup URL = "https://en.wikipedia.org/wiki/List_of_current_heads_of_state_and_government" res = requests.get(URL).text soup = BeautifulSoup(res,'lxml') for items in soup.find('table', class_='wikitable')... Add solution -
Python 2021-09-18 16:37:05
python - exchange rate API
import requests APP_ID = "**********************" ENDPOINT = "https://openxchangerates.org/latest.json" response = requests.get(f"{ENDPOINT}?app_id={APP:ID}") exchange_rate = response.json()["rates"] usd_amount = 1... Add solution
Best helpers
Kadeem
+5
Sylvia Bryan
+5
Mikeonly
+5
Martisj
+5
Eric Vavylon
+5
Paisleykaat
+5
Tammam
+5
T.A. N
+5
KingW3
+5
Harindra
+5
NFL
+5
Rajendra
+5
Fdsuhygfuig
+5