-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add detailed instruction for inspecting the contentid of linovelib
- Loading branch information
Showing
4 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# 普通用户如何获取轻小说正文的容器 ID | ||
|
||
找一个你正在爬取的小说的某一卷的某一章的一个网页,在 chrome 中进行访问,下面以 [这个链接](https://tw.linovelib.com/novel/4126/236198_2.html) 为例: | ||
|
||
![image-20241111165422618](assets/image-20241111165422618.png) | ||
|
||
鼠标右键或者(Ctrl + U)查看网页源代码,在正文区域,会有一个这样的id,这就是程序需要的值。 | ||
|
||
由于网页的结构可能会发生改变,也可能是对方服务器为了反爬虫而给爬虫方出题。当程序过旧,而网页数据过新时,该爬虫就会失败。 | ||
|
||
修复的方法之一就是:用户主动传递最新的id值告诉爬虫程序。 | ||
|
||
![image-20241111165605245](assets/image-20241111165605245.png) |