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

Fix wuxiaworld.com #2204

Merged
merged 6 commits into from
Dec 13, 2023
Merged

Fix wuxiaworld.com #2204

merged 6 commits into from
Dec 13, 2023

Conversation

alzamer2
Copy link
Contributor

@alzamer2 alzamer2 commented Nov 26, 2023

this update include:

  • update for Bearer that in Login to https://www.wuxiaworld.com #1360, which will make the Bearer login work in both scraper and Browser method.
  • username/email and password can be used to login now.
  • the script will wait for "Time Until Free Chapter" msg until disappear and chapter will fully loaded.

PS-1: if in your account setting you enabled Auto-unlock, and script used browser method you will unlock all chapter you marked in range.
PS-2:dont put locked chapter in scraping range if chapter auto-unlock is disable as that will hang/enter the script into infinite loop of waiting
PS-2:its not recommended to put locked chapter in scraping range if chapter auto-unlock is disable as that will make script to wait longer to see if the chapter will unlocked or not (like 10-20sec for each locked chapter)

this update include:
* update for Bearer that in dipu-bd#1360, which will make the Bearer login work in both scraper and Browser method.
* username/email and password can be used to login now.
* the script will wait for "Time Until Free Chapter" msg until disappear and chapter will fully loaded
PS-1: if in your account setting you enabled Auto-unlock, and script used browser method you will unlock all chapter you marked in range
PS-2:dont put locked chapter in scraping range if chapter auto-unlock is disable as that will hang/enter the script into infinite loop of waiting
#self._restore_cookies()
#logger.debug("cookies: Email(%s)", str(self.cookies))
#logger.debug("headers: Email(%s)", str(self.headers))
try:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the commented out codes. this helps the codebase to stay clean.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure
but what about headless? should i turn it on?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need. it will be automatically turned off for environments with no display

@dipu-bd
Copy link
Owner

dipu-bd commented Dec 12, 2023

The changes looks good, but there are some minor issues with linting. Check here: https://github.com/dipu-bd/lightnovel-crawler/actions/runs/7156781251/job/19575165040?pr=2204

@alzamer2
Copy link
Contributor Author

will look into it

@dipu-bd dipu-bd merged commit e6062bf into dipu-bd:master Dec 13, 2023
0 of 4 checks passed
@dipu-bd dipu-bd changed the title fix wuxiaworld.com Fix wuxiaworld.com Dec 13, 2023
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 this pull request may close these issues.

2 participants