Spaces:
Runtime error
Runtime error
Download python/test.py from mediaparty2023/spoof-detect: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/spaces/mediaparty2023/spoof-detect/resolve/main/python/test.py
- Command line
-
hf download hf://spaces/mediaparty2023/spoof-detect/python/test.py
-
curl -L -o test.py https://huggingface.co/spaces/mediaparty2023/spoof-detect/resolve/main/python/test.py
375 Bytes
| import re | |
| import requests | |
| import logging | |
| from bs4 import BeautifulSoup | |
| URL = 'http://www.bcra.gob.ar/SistemasFinancierosYdePagos/Entidades_financieras.asp' | |
| page = requests.post(URL, data={'bco': '00331'}, stream=False) | |
| soup = BeautifulSoup(page.content, 'html.parser') | |
| for l in soup.select('.post-pagina-interior'): | |
| print(l) | |
| for a in l.select('a'): | |
| print(a) | |