
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
webcomix is a webcomic downloader that can additionally create a .cbz (Comic Book ZIP) file once downloaded.
This program is for personal use only. Please be aware that by making the downloaded comics publicly available without the permission of the author, you may be infringing upon various copyrights.
-j
option)pip install webcomix
pip install poetry
poetry install
pre-commit install
webcomix [OPTIONS] COMMAND [ARGS]
Show the help message and exit.
Show the version number and exit.
Shows all predefined comics which can be used with the download
command.
Downloads a predefined comic. Supports the --cbz
flag, which creates a .cbz archive of the downloaded comic.
Searches for an XPath that can download the whole comic. Supports the --cbz
flag, which creates a .cbz archive of the downloaded comic,-s
, which verifies only the provided page of the comic, -y
, which skips the verification prompt, and -j
, which runs the javascript on pages before downloading.
Downloads a user-defined comic. To download a specific comic, you'll need a link to the first page, an XPath expression giving out the link to the next page and an XPath expression giving out the link to the image. More info here. Supports the --cbz
flag, which creates a .cbz archive of the downloaded comic, -s
, which verifies only the provided page of the comic, and -y
, which skips the verification prompt.
webcomix download xkcd
webcomix search xkcd --start-url=http://xkcd.com/1/
webcomix custom --cbz
(You will be prompted about other needed arguments)webcomix custom xkcd --start-url=http://xkcd.com/1/ --next-page-xpath="//a[@rel='next']/@href" --image-xpath="//div[@id='comic']//img/@src" --cbz
(Same as before, but with all arguments declared beforehand)Using an HTML inspector, spot a html path to the next link's href
attribute/comic image's src
attribute.
e.g.: //div[@class='foo']/img/@src
This will select the src attribute of the first image whose class is: foo
Note: webcomix
works best on static websites, since scrapy
(the framework we use to travel web pages) doesn't process Javascript.
To make sure your XPath is correct, you have to go into scrapy shell
, which should be downloaded when you've installed webcomix
.
scrapy shell <website> --> Use the website's url to go to it.
> response.body --> Will give you the html from the website.
> response.xpath --> Test an xpath selection. If you get [], this means your XPath expression hasn't gotten anything from the webpage.
The procedure depends on the type of contribution:
To run the tests, you have to use the pytest
command in the webcomix folder.
FAQs
Webcomic downloader
We found that webcomix demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.