Spaces:
Sleeping
Sleeping
Download app/dataops/scraper.py from TheJackBright/polyguard-openenv: direct link, hf CLI and curl.
- Browser
- Download file 241 Bytes
-
https://huggingface.co/spaces/TheJackBright/polyguard-openenv/resolve/main/app/dataops/scraper.py
- Command line
-
hf download hf://spaces/TheJackBright/polyguard-openenv/app/dataops/scraper.py
-
curl -L -o scraper.py https://huggingface.co/spaces/TheJackBright/polyguard-openenv/resolve/main/app/dataops/scraper.py
241 Bytes
| """Controlled scraper facade.""" | |
| from __future__ import annotations | |
| from app.dataops.web_agent import fetch_url | |
| def scrape_allowed_page(url: str, allow_domains: list[str]) -> str: | |
| return fetch_url(url, allowed_domains=allow_domains) | |