Giter Club home page Giter Club logo

ccdl's Introduction

ccdl

欢迎提交 PR

This is a package for downloading online comics.

Supported sites:

  • binb * :

    • r.binb.jp
    • www.cmoa.jp
    • booklive.jp
    • takeshobo.co.jp
    • www.comic-valkyrie.com
    • futabanet.jp
    • comic-polaris.jp
    • www.shonengahosha.co.jp
    • r-cbs.mangafactory.jp
    • comic-meteor.jp
  • comic_action:

    • comic-action.com
    • comic-days.com *
    • comic-gardo.com *
    • comic-zenon.com
    • comic-trail.com
    • comicborder.com
    • comicbushi-web.com
    • kuragebunch.com
    • ichijin-plus.com
    • magcomi.com
    • pocket.shonenmagazine.com *
    • shonenjumpplus.com *
    • sunday-webry.com
    • tonarinoyj.jp
    • to-corona-ex.com
    • viewer.heros-web.com
  • comic_earthstar:

    • viewer.comic-earthstar.jp
  • comic_walker:

    • comic-walker.com
  • ganganonline:

    • www.ganganonline.com
  • ganma:

    • ganma.jp
  • urasunday:

    • urasunday.com
  • yanmaga *:

    • yanmaga.jp

Install

For some sites, you'll need a version of chromedriver that matches the version of Chrome you've installed.

  $ git clone [email protected]:oxdz/ccdl.git

  $ cd ./ccdl
  
  # install dependencies
  $ pip install -r requirements.txt
  
  # install ccdl
  $ python ./setup.py install --user
  
  # Download the chromedriver
  $ wget https://cdn.npm.taobao.org/dist/chromedriver/86.0.4240.22/chromedriver_linux64.zip
  $ unzip chromedriver_linux64.zip
  $ rm chromedriver_linux64.zip

Usage

Strat with the code, for example

from selenium import webdriver

from ccdl import ComicLinkInfo
from ccdl import Binb2, ComicAction, Ganma


url = "https://comic-action.com/episode/13933686331709379523"

driver = webdriver.Chrome(executable_path='./chromedriver')

link_info = ComicLinkInfo(url)

reader = ComicAction(link_info, driver)
# or
"""
reader = SiteReaderLoader(link_info, driver)
reader.downloader() if reader else print("不支持的網站")
"""

reader.downloader()

Use CcdlSimpleStarter to download comics

Windows users can download the executable and double-click to run it.
The search path for chromedriver is the directory where the application resides.

If chromedriver exists: For sites with *, if necessary, login in the browser that opens automatically before you enter the URL.You also need to load (you can do this in any TAB) the URL in this browser.

$ python CcdlSimpleStarter.py

源碼: https://github.com/oxdz/ccdl

如需登入(含*)請提前在程式啟動的瀏覽器中登入並加載目標url(任意標籤頁)!


>>>>>>>>輸入exit退出<<<<<<<<

url: https://comic-action.com/episode/13933686331709379523
創建文件夾: ./漫畫/ネコ先輩さすがです!/第7話 寝方
|##################################################| 100% (4 of 4)
url:

Build executable

If you want to build the smallest executable file, please use the virtual environment to build

# create venv
$ python -m venv ./venv

# active venv
$ ./venv/Scripts/activate 

# upgrade wheel, setuptools
$ ./venv/Scripts/pip install --upgrade setuptools wheel

# install ccdl 
$ ./venv/Scripts/python ./setup.py install

# install  pyinstaller
$ ./venv/Scripts/pip install pyinstaller

# build executable
# If there is an error that the file top_level.txt does not exist, create a new one
$ ./venv/Scripts/pyinstaller -F ./CcdlSimpleStarter.py 

LICENSE

Unlicense License

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.