clarify caveats
This commit is contained in:
parent
c61f7ac590
commit
3edb6a7671
30
README.md
30
README.md
@ -1,15 +1,16 @@
|
||||
# NZZ Downloader
|
||||
|
||||
The [NZZ](https://en.wikipedia.org/wiki/Neue_Z%C3%BCrcher_Zeitung) is the Swiss
|
||||
Swiss newspaper of record. Its first issue was all the way back in 1780. It's
|
||||
even better that you can download every single issue ever released (if
|
||||
you have a subscription of course).
|
||||
even better that you can download every single issue ever released (if you have
|
||||
a subscription of course).
|
||||
|
||||
This little tool helps you with downloading all released issues in a specified
|
||||
time span.
|
||||
|
||||
It was written because the archive website is not very friendly in the author's
|
||||
opinion and of course because it is not possible to download everything in a time
|
||||
span.
|
||||
opinion and of course because it is not possible to download everything in a
|
||||
time span.
|
||||
|
||||
Because the archive website makes heavy use of javascript this is done with
|
||||
[selenium](https://www.selenium.dev/) to remote control a browser (firefox in
|
||||
@ -21,6 +22,7 @@ paid for their work.
|
||||
![screenshot](screenshot.jpg)
|
||||
|
||||
## Installation
|
||||
|
||||
You need to be comfortable with the command line to use the nzz downloader and
|
||||
it has only been tested on linux systems though it should work fine on Windows
|
||||
or macOS.
|
||||
@ -31,6 +33,7 @@ or macOS.
|
||||
- [nzz.js](https://code.vanwa.ch/sebastian/nzz-downloader/-/releases)
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
Usage: nzz.js -f [date] -t [date] -o [path] -u [usernane] -p [password]
|
||||
|
||||
@ -45,18 +48,27 @@ Options:
|
||||
```
|
||||
|
||||
### Examples
|
||||
Download all existing issues from 01-01-1780 until 30-02-1780 to the default
|
||||
|
||||
Download all existing issues from 1780-01-01 until 1780-02-30 to the default
|
||||
directory "./nzz"
|
||||
|
||||
```
|
||||
./nzz.js -u 'myuser@example.com' -p 'mypassword' -f 1780-01-01 -t 1780-02-30
|
||||
```
|
||||
|
||||
## Caveats
|
||||
You need a good internet connection, as the program only waits 5 seconds until a
|
||||
download of an issue can start. This is something that is hard to solve unfortunately.
|
||||
|
||||
If you get strange errors about elements not being visible, wait a bit and try again,
|
||||
it's usually a network problem.
|
||||
You need a good internet connection, as the program only waits a couple seconds
|
||||
until a download of an issue can start. This is something that is hard to solve
|
||||
unfortunately.
|
||||
|
||||
If you get strange errors about elements not being visible, wait a bit and try
|
||||
again, it's usually a network problem.
|
||||
|
||||
The proper way of doing this would be to figure out how the calls to the backend
|
||||
work and do that instead of using the heavy handed approach of instrumenting a
|
||||
browser.
|
||||
|
||||
## Licence
|
||||
|
||||
Licensed as [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/).
|
||||
|
Loading…
Reference in New Issue
Block a user