dipu-bd / lightnovel-crawler

Generate and download e-books from online sources.
https://pypi.org/project/lightnovel-crawler/
GNU General Public License v3.0
1.48k stars 292 forks source link

Wuxiaworld Login Save #1441

Closed SirGryphin closed 2 years ago

SirGryphin commented 2 years ago

Is there anyway to save login email and password locally and use that so I don't have to paste it in everytime?

budikesuma commented 2 years ago

@SirGryphin

Yup, with the Google colab method, you don't need to think about tokens/passes anymore.

You just need to paste your token/pass into the Google colab template available on our official lightnovel-crawler server, until the wuxiaworld.com site changes its login script...

dipu-bd commented 2 years ago

The console app was meant to be run as a standalone single time process. It does not save any states anywhere. You can write a bash/shell script and save your passwords there, and lunch the app using it.

Bash script example:

#!/usr/bin/env sh

USERNAME="Bearer"
PASSWORD="asdkahsd...asdasdas"

exec lncrawl --login "$USERNAME" "$PASSWORD" $@
SirGryphin commented 2 years ago

@dipu-bd I wrote a simple .bat file called "wux.bat" I put in system32.

CD C:\Users\User\Downloads

lncrawl --format epub --login email password

then when I open command prompt i just type "wux" and it changes to correct folder and launches lncrawl with settings I need.