gcerretani / antenati

Tools to download data from Portale Antenati

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sometimes the software suddenly fails (Mac OS)

kordan opened this issue · comments

git fetch origin --prune
git pull
python3 antenati.py "https://www.antenati.san.beniculturali.it/detail-registry/?s_id=19135478"
Traceback (most recent call last):
File "/Users/kordan/Desktop/ALBERI/antenati/antenati.py", line 201, in
main()
File "/Users/kordan/Desktop/ALBERI/antenati/antenati.py", line 186, in main
downloader = AntenatiDownloader(args.url)
File "/Users/kordan/Desktop/ALBERI/antenati/antenati.py", line 31, in init
self.manifest = self.__get_iiif_manifest(self.archive_url)
File "/Users/kordan/Desktop/ALBERI/antenati/antenati.py", line 63, in __get_iiif_manifest
raise RuntimeError(f'{url}: HTTP error {http_reply.status}')
RuntimeError: https://www.antenati.san.beniculturali.it/detail-registry/?s_id=19135478: HTTP error 403

Not an issue of this program: 403 errors are related to the remote server, probably due to filters to prevent DDoS, introduced at the beginning of this year. For example, Portale Antenati cannot be accessed from outside Italy, returning a 403 error in those cases.

Please update to v2.3, it should help you by adding some workarounds to new SAN server filters.