Skip to main content

WeReadScan (html-scan variant)

GitHub last commit GitHub code size in bytes GitHub top language

About

This branch is a html-scan variant of WeReadScan, integrating script developed by Sec-ant.

Thanks for Sec-ant, this variant of WeReadScan can be more efficient.

More detail about Sec-ant's project, you can visit https://github.com/Sec-ant/weread-scraper

Get started

pip install WeReadScan-HTML

This package needs selenium, so you should have some basis of selenium.

Demo

Talk is cheap, just show you the code.

"""
demo.py
The demo of WeReadScan.py
Copyright 2023 by Algebra-FUN
ALL RIGHTS RESERVED.
"""


from selenium.webdriver import Edge
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.edge.options import Options

from WeReadScan import WeRead


options = Options()
options.add_argument("--disable-blink-features=AutomationControlled")
options.add_argument('disable-infobars')
options.add_argument('log-level=3')
options.add_argument("headless")

# service = Service("/Users/creator/Downloads/msedgedriver")

# launch Webdriver
print('Webdriver launching...')
driver = Edge(options=options)
# driver = Edge(service=service, options=options)
print('Webdriver launched.')

with WeRead(driver,debug=True) as weread:
    weread.login() #? login for grab the whole book
    weread.scan2html('https://weread.qq.com/web/reader/2c632ef071a486a92c60226kc81322c012c81e728d9d180')
    weread.scan2html('https://weread.qq.com/web/reader/a9c32f40717db77aa9c9171kc81322c012c81e728d9d180')

Usage

Just code as demo show.

Stargazers over time

Stargazers over time

Metadata

Release files for WeReadScan-HTML 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for WeReadScan-HTML 0.1.1
File Size Uploaded
WeReadScan-HTML-0.1.1.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for WeReadScan-HTML 0.1.1
File Interpreter ABI Platform
WeReadScan_HTML-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / WeReadScan-HTML-0.1.1.tar.gz

Download URL WeReadScan-HTML-0.1.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
98f3ca240b5d855a316f80b763c21aca7667d7d356c77883784aef6caf1a6d82
BLAKE2b-256 checksum
How to use checksums
61576d5d67be352b2af593e1eddbcd549fb24855d70330267644a1ad504cad74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / WeReadScan_HTML-0.1.1-py3-none-any.whl

Download URL WeReadScan_HTML-0.1.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
071b2cf29985ed9d8fae09298d82a2c922844055040b2e0f169a913d82c82542
BLAKE2b-256 checksum
How to use checksums
46007c6eaa22a21e18abacc2686bb295969f39c25655ae38a329d452a557b73d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page