Loading
Loading
https://api.apifreaks.com/v1.0/scraping
1. Open the Authorizations dropdown and Verify your API key.
2. Click Run to see the live response here.
$ pip install requestsimport requests
import json
url = "https://api.apifreaks.com/v1.0/scraping"
payload = json.dumps({
"instructions": [
{
"fill": {
"place": "//*[@id='nombre']",
"value": "google"
}
},
{
"click": "//*[@id='page']/div/div/section[1]/div/div/div/div[2]/div/div/form/div[2]/button"
},
{
"clickButtonByValue": {
"place": ".col-6:nth-child(2) > .col-12",
"value": "google.sv "
}
},
{
"wait": 1000
},
{
"extract": {
"html": "//*[@id='DivResultado']/div"
}
}
]
})
headers = {
'Content-Type': 'application/json',
'X-apiKey': ''
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)