TOP

2020年9月12日 星期六

Comic Crawler 使用方法

Comic crawler 是個下載漫畫的工具,由 python 寫成的 open source 專案。

透過開啟線上漫畫書的主頁,由 python 爬蟲逐一下載對應的圖檔。

它支援特定的網站,要支援新網站可透過修改安裝目錄下  mods 目錄中的檔案達成

 

 

Source & Docs

https://github.com/eight04/ComicCrawler

http://eight04.blogspot.com/2014/03/comic-crawler.html

 

 

Installation

cmd 底下輸入以下指令︰

pip install comiccrawler

 

安裝位置:

C:\Users\qoo\AppData\Local\Programs\Python\Python38\Scripts\comiccrawler.exe

C:\Users\qoo\AppData\Local\Programs\Python\Python38\Lib\site-packages\comiccrawler

C:\Program Files\Python36\Scripts\comiccrawler.exe

C:\Program Files\Python36\Lib\site-packages\comiccrawler

 

 

Update

pip install --upgrade comiccrawler

 

 

Execute

Syntax:

Usage:

  comiccrawler [--profile=<profile>] (

    domains |

    download <url> [--dest=<save_path>] |

    gui

  )

  comiccrawler (--help | --version)

 

Commands:

  domains    列出支援的網址

  download   下載指定的 url

  gui        啟動主視窗

 

Options:

  --profile  指定設定檔存放的資料夾(預設為 "~/comiccrawler"

  --dest     設定下載目錄(預設為 "."

  --help     顯示幫助訊息

  --version  顯示版本

<來自 https://github.com/eight04/ComicCrawler>

 

cmd 底下輸入以下指令執行 Comic Crawler

comiccrawler gui

 

 

檔案下載位置

在任務列表的任務 item 點選右鍵, 選擇 "開啟資料夾", 通常是在:

C:\Users\UserName\comiccrawler\download\

UserName 為當前的使用者名稱

 

 

Troubleshooting

Failed to load session!

raise ModuleError("Get module failed!")

comiccrawler.error.ModuleError: Get module failed!

 

PS C:\Windows\system32> comiccrawler gui

Failed to load session!

Traceback (most recent call last):

  File "c:\program files\python36\lib\runpy.py", line 193, in _run_module_as_main

    "__main__", mod_spec)

  File "c:\program files\python36\lib\runpy.py", line 85, in _run_code

    exec(code, run_globals)

  File "C:\Program Files\Python36\Scripts\comiccrawler.exe\__main__.py", line 9, in <module>

  File "c:\program files\python36\lib\site-packages\comiccrawler\cli.py", line 57, in console_init

    from .gui.main_window import MainWindow

  File "c:\program files\python36\lib\site-packages\comiccrawler\gui\main_window.py", line 23, in <module>

   from ..download_manager import download_manager

  File "c:\program files\python36\lib\site-packages\comiccrawler\download_manager.py", line 28, in <module>

    from .mission_manager import mission_manager

  File "c:\program files\python36\lib\site-packages\comiccrawler\mission_manager.py", line 196, in <module>

    mission_manager = MissionManager()

  File "c:\program files\python36\lib\site-packages\comiccrawler\mission_manager.py", line 30, in __init__

    self.load()

  File "c:\program files\python36\lib\site-packages\comiccrawler\mission_manager.py", line 68, in load

    self._load()

  File "c:\program files\python36\lib\site-packages\comiccrawler\mission_manager.py", line 109, in _load

    mission = create_mission(**m_data)

  File "c:\program files\python36\lib\site-packages\comiccrawler\mission.py", line 43, in create_mission

    return MissionProxy(Mission(*args, **kwargs))

  File "c:\program files\python36\lib\site-packages\comiccrawler\mission.py", line 21, in __init__

    raise ModuleError("Get module failed!")

comiccrawler.error.ModuleError: Get module failed!

=> C:\Users\UserName\comiccrawler 目錄刪除, 重新執行 comiccrawler gui 即正常

 


沒有留言:

張貼留言