Skip to content

[Python] Scraps comics and manga from various websites and creates cbz files from them

License

Notifications You must be signed in to change notification settings

ShivanshDave/comic-scraper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comic-scraper (Comic/Manga Downloader)

Downloads comics and manga from various websites and creates cbz files from them. Currently supports readcomics.tv, mangafox.me and mangahere.co

Installation

Via pip

To install the comic scraper, simply type this into your terminal (sudo might be necessary):

pip install comic-scraper

Via pip (local)

Clone a copy of the repository using the following command:

git clone https://github.com/AbstractGeek/comic-scraper.git

Open your terminal into the folder and type this into it (sudo might be necessary):

pip install .

Manual Installation

Requirements

The script is written in python. It requires the following packages:

  1. BeautifulSoup4
  2. requests
  3. futures (concurrent.futures)

These can simply be installed by:

pip install -r requirements.txt

That's it. Use comic_scraper.py to download comics and manga.

Usage

Comics

Find your comic of interest in readcomics.tv. Copy the url of the comic page. For example, If I wanted to download spider-man-2016, I need to copy this url: http://www.readcomics.tv/comic/spider-man-2016

To download all the chapters of the comic, simply call the script and input the url.

comic-scraper http://www.readcomics.tv/comic/spider-man-2016

If you want to set a custom location, add -l and input the location

comic-scraper -l ~/Comics/ http://www.readcomics.tv/comic/spider-man-2016

If you want to download a select few chapters, add -c and input the chapter numbers. For example, if I want to download chapters 10-20, I use the following command

comic-scraper -l ~/Comics/ -c 10:20 http://www.readcomics.tv/comic/spider-man-2016

Note: Only individual chapters or sequential chunks (start:stop) can currently be downloaded.

Manga

The syntax for downloading manga is exactly the same as the comics. For example, if I wanted to download kindom manga, I need to copy the url from mangafox (or mangahere) website: http://mangafox.me/manga/kingdom/

To download all chapters of this manga, simply call the script and input the url.

comic-scraper http://mangafox.me/manga/kingdom/

To download selected chapters, add -c and input the chapter numbers. To set a custom location, add -l and input the location. Here is an example:

comic-scraper -l ~/Comics/ -c 1:100 http://mangafox.me/manga/kingdom/

About

[Python] Scraps comics and manga from various websites and creates cbz files from them

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%