Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

漫畫櫃 manhuagui 網站和 山立網站下載都出現問題 #320

Closed
sango2001 opened this issue Dec 11, 2021 · 23 comments · Fixed by #323
Closed

漫畫櫃 manhuagui 網站和 山立網站下載都出現問題 #320

sango2001 opened this issue Dec 11, 2021 · 23 comments · Fixed by #323

Comments

@sango2001
Copy link

嘗試下載 山海逆戰, 上周還可以,這周就出現 line 338, in error_loop, line 289 line 51, line 58, line 186, line 95

comic
已經發圖, 蠻煩修復,感激, 謝謝
p

@sango2001
Copy link
Author

直接登錄網站是可以看到漫畫的,所以不是網站問題,可能他們修改了部分位置,具體我不清楚, 謝謝

@rickchen16
Copy link

rickchen16 commented Dec 12, 2021

manhuagui 網站確認了一下
html網頁改了
以前可能是src="https://cf.hamreus.com/scripts/config_5F5A8A8B46A7B711EC3579AFD755010FA8E85725.js"

現在是src="//cf.hamreus.com/scripts/config_5F5A8A8B46A7B711EC3579AFD755010FA8E85725.js"
前面的https:沒有了
所以會有錯
按下方式修改可以先避開這個問題
comiccrawler\mods\seemh.py

# configjs_url = re.search(
configjs_url = 'https:' + re.search(
	# r'src="(https?://[^"]+?/config_\w+?\.js)"',
	r'src="(//[^"]+?/config_\w+?\.js)"',
	html
).group(1)
  
   # corejs_url = re.search(
corejs_url = 'https:' + re.search(
	# r'src="(https?://[^"]+?/core_\w+?\.js)"',
	r'src="(//[^"]+?/core_\w+?\.js)"',
	html
).group(1)

seemh.zip

@sango2001
Copy link
Author

麻煩能改一下這個檔案讓我下載嗎?我手動修改了,結果報錯。 連comiccrawler 都打不開
524

@rickchen16
Copy link

rickchen16 commented Dec 13, 2021

麻煩能改一下這個檔案讓我下載嗎?我手動修改了,結果報錯。 連comiccrawler 都打不開 524

放了seemh.zip(https://github.com/eight04/ComicCrawler/files/7700312/seemh.zip)
你的感覺檔案編碼被改壞了

@sango2001
Copy link
Author

thx it work now, cheer

@eight04
Copy link
Owner

eight04 commented Dec 13, 2021

等這個 repo 也修好再關這個 issue,或是 @rickchen16 也可以發個 PR

@eight04 eight04 reopened this Dec 13, 2021
@rickchen16
Copy link

等這個 repo 也修好再關這個 issue,或是 @rickchen16 也可以發個 PR

目前這個改法是個patch
感覺不太適合push
我也還沒想到比較漂亮的改法 XD

@sango2001
Copy link
Author

sango2001 commented Jan 19, 2022 via email

@eight04
Copy link
Owner

eight04 commented Jan 19, 2022

Python 程式的開發留程是這樣︰

  1. 寫 code,傳到 Github 上,可以測試、討論、檢查錯誤、etc。
  2. 一切正常後,tag 一個新的版本數字。
  3. 把這些 code 打包/壓縮成一個 package,並且把這個 package 上傳到 pypi.org。

#323 只做了 (1) 的部份,所以你不會在 pypi.org 裡找到新版本的 comiccrawler。

如果想要測試最新的、還沒打包成 package 的程式碼,得從 Github 下載最新的程式碼︰

  1. 安裝 git
  2. 安裝 python
  3. 安裝 vpip,一個用來管理 python package 的工具。執行 pip install vpip
  4. 接下來就可以在命令行完成了︰
    git clone https://github.com/eight04/ComicCrawler.git
    cd ComicCrawler
    vpip install
    vpip link

vpip link 後,你的 comiccrawler 指令「應該」就會使用最新的程式碼了。未來如果要更新,就直接在 ComicCrawler 資料夾底下執行 git pull,git 就會幫你把最新的程式碼下載下來。

@sango2001
Copy link
Author

sango2001 commented Jan 20, 2022 via email

@eight04
Copy link
Owner

eight04 commented Jan 20, 2022

我看不到你的圖。如果你是直接在 email 中插入圖片,那我猜 notifications@github.com 可能不會把附加的圖片自動上傳到 Github,而是捨棄。

@sango2001
Copy link
Author

圖一
圖2
圖4

@sango2001
Copy link
Author

抱歉我用email 直接回復,可能沒有上傳圖片,這是之前的圖,麻煩看看

@eight04
Copy link
Owner

eight04 commented Jan 21, 2022

看起來是 setuptools 的版本太老了,跟 python 3.10 衝突。

  1. .venv 資料夾刪除,
  2. 編輯 requirements-lock.txt,把 setuptools==41.2.0 這行刪除,存檔。
  3. 重行執行 vpip install

@sango2001
Copy link
Author

sango2001 commented Jan 21, 2022 via email

@eight04
Copy link
Owner

eight04 commented Jan 21, 2022

沒有一定。以我自身為例,會把專案統一放在 D:\dev 資料夾內,那麼我在 D:\dev 裡執行 git clone http://github.com/eight04/ComicCrawler.git,git 就會把程式碼下載進 D:\dev\ComicCrawer 資料夾。

@sango2001
Copy link
Author

sango2001 commented Jan 21, 2022 via email

@eight04
Copy link
Owner

eight04 commented Jan 21, 2022

你現在有兩個 python 環境,一個是外面的 C:\Users\NewWorld\AppData\Local\Programs\Python\Python310,一個是專案內 .venv 資料夾底下的。

若要執行專案內的,你可以

  • 在 ComicCrawler 資料夾底下執行 vpip run comiccrawler gui。或是
  • 直接執行 "D:\dev\ComicCrawler\.venv\Scripts\comiccrawler.exe" gui。也可以
  • 執行 vpip link 指令,vpip 會把專案內的 comiccrawler.exe 連到外面 python 的 Scripts 資料夾,以後就可以直接打 comiccrawler gui,不需要加一長串資料夾。

另外,外面的 python 中還是安裝著 comiccrawler,可以執行 pip uninstall comiccrawler 解除安裝。不用擔心,它不會影響專案內的。

@sango2001
Copy link
Author

在comiccraweler 運行 vpip run comiccrawler gui 很正常,
但如果在 c:\comiccrawler\ vpip link
執行完
在普通時候打comiccrawler gui 說找不到 紅色字
01

@eight04
Copy link
Owner

eight04 commented Jan 21, 2022

你沒做錯,是 vpip link 壞了︰eight04/vpip#36

@sango2001
Copy link
Author

sango2001 commented Jan 21, 2022 via email

@sango2001
Copy link
Author

今天看到你有新的更新,所以就按照你之前的更新了,可是下載的時候出現了這個問題
Untitled

@eight04
Copy link
Owner

eight04 commented Feb 4, 2022

不同的問題請開一個新的 issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants