mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.97k stars 975 forks source link

[Exhentai] Retrieving page source #4402

Closed a84r7a3rga76fg closed 1 year ago

a84r7a3rga76fg commented 1 year ago

Can gallery-dl save the page source of all pages of an Exhentai gallery to a file? Doing it by hand is visiting the gallery in the browser, choosing the page number, right clicking, on "View page source", highlighting all of the text and saving it to a .htm/.html file.

By page, I mean these image

mikf commented 1 year ago

Not possible. There is a --write-pages option, but that writes every request and only the first on is for a gallery HTML page.

right clicking, on "View page source", highlighting all of the text and saving it to a .htm/.html file.

Ctrl+s and Enter do the same.

Hrxn commented 1 year ago

@a84r7a3rga76fg You already have the links to these gallery pages, no?

You can use a simple shell script with a loop to download the HTML document from each page, pretty straightforward for anything that is not an interactive JS web "app"..

Even simpler, since the gallery pages are probably just numbered: you can use curl with a globbing pattern, so something like curl -s -L -O "http://example.com/galleryXYZ/page[1-4]"