Spaces:
Sleeping
Sleeping
File size: 466 Bytes
7742d11 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import requests
# URL of the running FastAPI scraper server
base_url = "https://apexherbert200-selenium-scraper2.hf.space/scrape"
# Target page to scrape
params = {"link": "https://jobright.ai/jobs/info/681ab6e27e673b00b9024e36"}
# Send GET request
response = requests.get(base_url, params=params)
# Print the JSON response
if response.status_code == 200:
data = response.json()
print(data)
else:
print("Error:", response.status_code, response.text)
|