MarcelloCuoghi / SanBeniculturali-Downloader

A simple application that download the requested genealogy registry from the website http://www.antenati.san.beniculturali.it/
4 stars 1 forks source link

The site has been updated and the program does not work anymore #2

Open ranierosupermo opened 1 year ago

ranierosupermo commented 1 year ago

The original site has been upaded with new links and a different way to browse the records. The program doesn't work properly anymore. Could you fix and adapt it to the new site? If you browse the documents now, you will notice that you can't even download images in full size. I'll try to explain you how to get the image in the original size, in the hope that this will help you in fixing the program. To download the original image, first check the link to a page image, for example:

https://www.antenati.san.beniculturali.it/ark:/12657/an_ua731639/0AR8dy8

and save the code after the last slash "/", which identifies the image. In this case, the code is "0AR8dy8"

Now you need a "template link" called "IIIF manifest", which is the same for any image you want to download except for the identification code:

https://iiif-antenati.san.beniculturali.it/iiif/2/[TARGET]/full/full/0/default.jpg

You will notice a space marked as "[TARGET]". You have to replace this with that code of the image, which is, again, "0AR8dy8". You will obtain the following link:

https://iiif-antenati.san.beniculturali.it/iiif/2/0AR8dy8/full/full/0/default.jpg

This link will actually take you to the original full sized image where you can download it.

I don't know how your program works, but you should insert this logic and update all of the links to the registry pages etc, including the original home page link, because they are not the same. Now the home page link is "https://www.antenati.san.beniculturali.it/" without "dl".

Also, always use the IIIF manifest link that I have sent to you, don't take it from the site when browsing pages because it doesn't work.

MarcelloCuoghi commented 1 year ago

Thanks for your advices, I will try to update following your suggestions. Unfortunately I don't have much time in this period but with these suggestions you help me a lot.