Answer the question
In order to leave comments, you need to log in
How to get json from a website using requests?
I wrote the code:
import requests
import json
url = "https://kugoo-russia.ru/electrosamokaty/dlya-dalnih-poezdok#button"
headers = {"accept": "text/plain, */*; q=0.01",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36",
"content-type": "text/html; charset=UTF-8"}
response = requests.get(url, headers=headers)
data_json = response.json()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question