TilCreator / Tapas-Comic-Downloader

This is a downloader to download whole comics from https://tapas.io/. (Not official!)
MIT License
70 stars 15 forks source link

Instructions unclear, little help needed. #27

Open CanineCuriosity opened 4 years ago

CanineCuriosity commented 4 years ago

This tool is just what I'm looking for, but I'm struggling a bit with the installation. I'm a complete noob when it comes to coding, so please talk to me like you would talk to an idiot XD

This part is the one giving me trouble: "Navigate to repo location (needs to be downloaded)"

Python is installed, and I can find a lot of modules with help("modules") command, but that's about it. (I'm using Windows 10 and Python 3.9)

Any help is appreciated!

TilCreator commented 4 years ago

On https://github.com/TilCreator/Tapas-Comic-Downloader click the green download button, click the download zip button. Then extract the zip to somewhere. Open cmd (found in the searchbar), enter cd <where you have extracted the zip> (without the <>), then enter pip install -r requirenments.txt and after that you are ready to use python tapas-dl.py <name> (without the <>) to download comics.

CanineCuriosity commented 4 years ago

Got an error in cmd, it doesn't seem to recognize the pip command. Python is installed, so maybe I missed something during the setup? Capture

CanineCuriosity commented 4 years ago

Ignore the previous comment, I think I got it working. I tried to use the script, but it didn't do anything. Am I missing something here? Capture1

TilCreator commented 4 years ago

All three commands should give at least some output. Are the files (requirenments.txt, requirenments_novels.txt, tapas-dl.py) in that folder (C:\Python)?

CanineCuriosity commented 4 years ago

Yeah, that's where I put them. So, it seems like the command prompt doesn't recognize the python commands (which means I probably messed up somewhere when installing it). Is there a way to install these using python's own command prompt?

TilCreator commented 4 years ago

Sadly idk, you would have to look into the pip docs for that. To fix the cmd not recognising python you probably want to search for "Windows Python in PATH" or similar.

bap269 commented 4 years ago

Help, i am completely helpless when it comes to coding. How can I fix this?? pip

TilCreator commented 4 years ago

You need to be in the same directory where the files (requirenments.txt, requirenments_novels.txt, tapas-dl.py) are. See the cd command.

Arleng001 commented 4 years ago

Uhmm, how to do that? I've downloaded the zip and stored it in drive D. I just copied and pasted it's location to cmd

TilCreator commented 4 years ago

Extract the zip and go to the directory where you extracted it. You will find enough help on how to use the cd command on the internet.

Arleng001 commented 4 years ago

Oh okay, got it thanks😊

TilCreator commented 4 years ago

Can I close this issue now?

bap269 commented 4 years ago

I have a problem when it comes to downloading the novels from tapas whether i enter the URl it says 'piquery' not found. Can somebody pls tell me how to fix it? tapas1

TilCreator commented 4 years ago

Have you installed the requirements.txt?

Arleng001 commented 4 years ago

I am sorry for being a total ignorant. By installing you mean running it into cmd? Yes i did i ran it through cmd.

TilCreator commented 4 years ago

I mean those two commands:

pip install -r requirenments.txt
pip install -r requirenments_novels.txt
CanineCuriosity commented 4 years ago

Alright, I got python working on cmd. I think. It says the download was succesful. Capture3

In case someone else runs into the same problem, this tip from a random forum did the trick: Capture5

However, I ran into another problem (probably 'cause I'm using the code wrong or something): Capture4 When I run the code, it doesn't give any indicator that it actually did something. Can you provide an example of a fully functional command? Thanks in advance.

TilCreator commented 4 years ago
~/git/Tapas-Comic-Downloader on master
❯ python tapas-dl.py Erma
Erma [Erma] (450 pages):                                                                                                                                                                                                                                                                                                                                                     
Found directory, only updating (use -f/--force to disable)                                                                                                                                                                                                                                                                                                                   
Detected comic                                                                                                                                                                                                                                                                                                                                                               
Downloaded 21 of 21 images
TilCreator commented 4 years ago

What does python --version (enter in the cmd) say?

Arleng001 commented 4 years ago

Yes.. I entered the command for novels...

On Wed, 11 Nov 2020, 3:37 AM TilCreator J. notifications@github.com wrote:

I mean those two commands:

pip install -r requirenments.txt pip install -r requirenments_novels.txt

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TilCreator/Tapas-Comic-Downloader/issues/27#issuecomment-724921816, or unsubscribe https://github.com/notifications/unsubscribe-auth/APPE2IKJS6BSNTMOD2ARKVLSPGJAJANCNFSM4SS5XU3Q .

bap269 commented 4 years ago

An this is where ive come so far... piquery

TilCreator commented 4 years ago

You need both, not just requirenments_novels.txt

CanineCuriosity commented 4 years ago

Okay, so, cmd doesn't recognize "python" as a command, but it does recognize "py". Here's what I got so far: Capture6

So, it seems like I can run the command just fine with that small modification, but there is another error here.

TilCreator commented 4 years ago

I have no idea what is happening there and the only suggestion I have is to use Linux instead of Windows ^^

bap269 commented 4 years ago

it says directory name is invalid?? xuanlong

TilCreator commented 4 years ago

Try python tapas-dl.py -c xuanlong The -c option was specificaly created for windows, because it restricts file name characters. Also have a look at python tapas-dl.py --help, that lists all available options.

bap269 commented 4 years ago

Still says the same though even with -c. I also did some research on how to fix the error and it still says the same...

C:\Tapas-Comic-Downloader-master\Tapas-Comic-Downloader-master>python tapas-dl.py -c Xuanlong Loading Xuanlong... Xuanlong: Steel and Fang [Xuanlong] (155 pages):
Checking folder... Traceback (most recent call last): File "C:\Tapas-Comic-Downloader-master\Tapas-Comic-Downloader-master\tapas-dl.py", line 131, in os.mkdir(savePath) NotADirectoryError: [WinError 267] The directory name is invalid: 'Xuanlong: Steel and Fang [Xuanlong]'

TilCreator commented 4 years ago

Oh, you're right, error on my part, it's fixed now

CanineCuriosity commented 4 years ago

Was there an error in the code?

Also, I don't have access to a system with linux, but I could try to set up a Virtual Machine. Can you give me the exact version of linux and python you're running? Also, does the code have some random interactions with VMs that I should be aware of?

Lets see if we can find a fix for windows users :3

TilCreator commented 4 years ago

Yes

It shouldn't be hard to install on Windows / Only be easier on Linux if you know what you are doing. But shure, try it. I'm using ArchLinux (has no Versioning) and Python 3.8.6 (But the version really should make no difference if it's greater than 3.0.0). And there are no complications between that script and vms that I'm aware of.

There are plenty of people already using the script on Windows without problems.

TilCreator commented 3 years ago

Can this be closed?

PulitoDelgado commented 12 months ago

I had the same problem with "Unable to create process using 'C:\bin\env python3". I managed to solve it by following this with some adaptations. OP had to search Python in a different folder and use the .exe there, while I could use my regular installation folder just fine. Thus, C:\Users\liutongjun\AppData\Local\Programs\Python\Python312\python.exe tapas-dl.py -c https://tapas.io/series/Erma finally worked for me. Now all that's left is to get the script working for locked chapters, despite me having an account with those chapters bought.... Edit: just got it working. exporting cookies on firefox requires a third party extension, unfortunately. Thanks for the script, TilCreator!