You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if it comes from the website (limited access?), from the library or from my code (I tried different things), but I can't seem to download the images from, for instance the following ark identifier: https://bibliotheques-specialisees.paris.fr/ark:/73873/pf0000935116
fromgallipyimportResource, Arkdefsave(either, filename):
print('save')
# Handle exceptions hereifeither.is_left:
raiseeither.value# Otherwise we can safely unwrap its content.withopen(filename,'wb') asfile:
file.write(either.value)
returneither# Enables method chaining.my_ark='https://bibliotheques-specialisees.paris.fr/ark:/73873/pf0000935116'filename='pf0000935116.png'# Async call: save(either, filename) is a callback method.#Resource(my_ark).content(startview=1, nviews=17, mode='pdf').map(lambda x: save(x, filename))ark=Ark.parse(my_ark) # Parse the arkark.map(print)
ark.map(lambdax : print(repr(x)))
ark.map(lambdax : print(x.arkid))
#Ark.parse(my_ark).map(Resource).value.iiif_data(view='v0014.simple').map(lambda x: save(x, filename))Resource(my_ark).iiif_data(view=1).map(lambdax: save(x, filename))
ark.map(lambdax : print(repr(x.arkid)))
The text was updated successfully, but these errors were encountered:
I don't know if it comes from the website (limited access?), from the library or from my code (I tried different things), but I can't seem to download the images from, for instance the following ark identifier:
https://bibliotheques-specialisees.paris.fr/ark:/73873/pf0000935116
The text was updated successfully, but these errors were encountered: