rayondemiel / iiif_collector Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
optimize this code when loading and then download images
Utilize concurrent processing: Use concurrency libraries like concurrent.futures or asyncio to parallelize the requests and processing. This can significantly speed up the execution time, especially if there are many URLs to process.
cli to get all (or determinate) link image API in manifest IIIF
useless function
add test app with github action
Work pathlib option to execute it in windows/linux
And add execute file for windows
Use a connection pool for requests: Rather than creating a new requests.Session object for each request, utilize a connection pool by creating a session outside the loop and reusing it. This helps improve performance by reusing connections and reducing overhead.
exemple : # test2 https://api.digitale-sammlungen.de/iiif/presentation/v2/bsb10402127/manifest -> voir pour telecharger sortie ocr (seealso)
retourne lien html (https://github.com/kba/hocr-spec)
need this version to conform with kraken
changer prompt : https://rich.readthedocs.io/en/stable/prompt.html (pour faire des choix)
progress bar : https://rich.readthedocs.io/en/stable/progress.html
Use generator functions: Instead of creating a large list to hold all the URLs, consider using generator functions to yield URLs one at a time. This avoids loading all URLs into memory at once, especially if there is a large number of URLs.
get_next -> yield
number is an option, if NONE -> get all images
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.