Crawler framework to download Internet-novels from web.
Project description
爬取小说网站并生成TXT
目前支持
安装
用法
CLI
config = (
r'D:\net_novels\crawler_ocr\lord',
{
'start_page': 'https://ccc.xxxx.com/Novel/xxxxxx/',
'login_info': ('test_login', 'test_pwd'),
'image_folder': 'vip_images',
'image_process': 'ocr',
'text_file': 'xxx.txt',
}
)
from netnovelcrawler import Crawler
from netnovelcrawler.utils.starter_stopper import AfterChapterStarter, CountStopper
mycrawler = Crawler(*config)
mycrawler.crawl(starter=AfterChapterStarter("10. 某章节"), stopper=CountStopper(50))
GUI
python -m netnovelcrawlertaskmgr
绕过滑块验证反爬虫机制
######修改chromedriver.exe
- 文本编辑器打开chromedriver.exe
- 找到
cdc_
字符串 - 等长替换$cdc_lasutopfhvcZLmcfl
- 保存
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
netnovelcrawler-0.0.2.tar.gz
(25.4 kB
view hashes)
Built Distribution
Close
Hashes for netnovelcrawler-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13e8f51512a33c739366b502caa3c17d752e6e48bd12e8f20defee2a600eb811 |
|
MD5 | 32184814f367d73c564675c2f70387d3 |
|
BLAKE2b-256 | dce722e1501b93433511075322f2c34e02cecb5aeaa31028f99a7cee677024be |