persepolisdm / persepolis

Persepolis is a download manager written in Python.
https://persepolisdm.github.io
GNU General Public License v3.0
6.29k stars 653 forks source link

Feature request: Batch download (set of links that follow a pattern) #615

Open raindropsfromsky opened 5 years ago

raindropsfromsky commented 5 years ago

Sometimes websites provide links that have a definite pattern. For example, the path is common, but each link has a serialized chapter number. like this:

http://UniversityName.edu/Civil/C235/2019/Summer/TransportationEngg/chap01.pdf http://UniversityName.edu/Civil/C235/2019/Summer/TransportationEngg/chap02.pdf ..... http://UniversityName.edu/Civil/C235/2019/Summer/TransportationEngg/chap30.pdf

In this case, the user should be able to compose the links by specifying the base path, a counter and the extension.

In a typical solution, the user composes the name like this: http://UniversityName.edu/Civil/C235/2019/Summer/TransportationEngg/chap(*).pdf (the two-digit serial number is replaced by *()** ).

Then a GUI allows him to define the start- and ending values, and also a "leading zeros to x digits" control.

For example, in this case the counter can be set from 1 to 30, and padding to 2 digits. If the leading zeros control is not set, then it will produce filenames like chap1.pdf instead of chap01.pdf.

Several popular downloaders have this feature (e.g. uGet).

rubiin commented 5 years ago

Add this feature, its available on uget @JafarAkhondali

JafarAkhondali commented 5 years ago

@rubiin Sure, but in the meantime the similiar thing is possible via extension ( for filtering )