Comments (5)
I second this. And ideally, a shorthand to fetch just a single page by its number.
Thank you for publishing this excellent tool, in any case.
from antenati.
Hi @gcerretani. I got inspired and ended up implementing this feature, along with a couple of other small things.
https://github.com/alexreg/antenati/tree/local
Feel free to merge in some/all of these changes, if you like.
You'll have to forgive me for switching CLI parsing to the Cloup library... I have already been looking for an excuse to play around with it, but also I didn't see a way to make optional (positional) arguments using argparse. Regardless, it should be easy enough to ignore that change.
from antenati.
A very interesting feature, thanks @jbellanca. I'll try to implement it!
from antenati.
Done on 7c40b4b (sorry for the bad issue reference on the commit message, 1 instead o 10!)
from antenati.
You can select the range using new command line options. For example:
antenati.py URL
downloads everything.
antenati.py URL -f 0
downloads everything.
antenati.py URL -f 10
downloads everything starting from page 10.
antenati.py URL -l 11
downloads from first to page 11 excluded (11 pages, first index is 0).
antenati.py URL -f 10 -l 11
downloads from fome page 10 to page 11 excluded (1 page).
Also negative indexes can be used:
antenati.py URL -f -4
downloads only last 4 pages.
antenati.py URL -l -3
downloads eveything except last 3 pages.
from antenati.
Related Issues (11)
- Script fails where multiple years share same gallery ID HOT 3
- Need option to use an existing directory HOT 1
- Nuova architettura Portale Antenati HOT 3
- invalid syntax on line 41 HOT 2
- Configuring installation scheme with distutils config files is deprecated HOT 1
- Sometimes the software suddenly fails (Mac OS) HOT 2
- Antenati update overnight changed the URL's HOT 6
- https://www.antenati.san.beniculturali.it/ark:/12657/an_ua36056322/LeY9lgW HOT 6
- HTTP error 403 HOT 1
- ModuleNotFoundError certifi HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antenati.