Answer the question
In order to leave comments, you need to log in
Can't handle a problem in selenium?
There is code that uses requests:
import requests
driver = webdriver.Chrome()
headers = {
"apikey": "x9x03xx0-xx44-11xx-84xx0-x365x9x7xxxx"
}
params = (
("url","https://freegeoip.app/json/"),
("location","eu"),
)
response = requests.get('https://app.zenscrape.com/api/v1/get', headers=headers, params=params)
Answer the question
In order to leave comments, you need to log in
Through seleniumwire you can
from seleniumwire import webdriver
driver = webdriver.Chrome()
def interceptor(request):
request.headers['apikey'] = 'x9x03xx0-xx44-11xx-84xx0-x365x9x7xxxx'
driver.request_interceptor = interceptor
driver.get('https://app.zenscrape.com/api/v1/get')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question