gcerretani / antenati

Tools to download data from Portale Antenati
MIT License
27 stars 9 forks source link

Sometimes the software suddenly fails (Mac OS) #9

Closed kordan closed 2 years ago

kordan commented 2 years ago

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

gcerretani commented 2 years ago

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.

gcerretani commented 2 years ago

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