Spaces:
No application file
No application file
import requests | |
# URL of the running FastAPI scraper server | |
base_url = "https://huggingface.co/spaces/apexherbert200/selenium-scraper2" | |
# 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) | |