Download app.py from boompack/pater: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/spaces/boompack/pater/resolve/main/app.py
- Command line
-
hf download hf://spaces/boompack/pater/app.py
-
curl -L -o app.py https://huggingface.co/spaces/boompack/pater/resolve/main/app.py
309 Bytes
| import requests | |
| from bs4 import BeautifulSoup | |
| # Fetch a web page | |
| page = requests.get("http://www.example.com") | |
| # Parse the HTML content | |
| soup = BeautifulSoup(page.content, "html.parser") | |
| # Find all the links on the page | |
| links = soup.find_all("a") | |
| # Print the links | |
| for link in links: | |
| print(link.get("href")) |