mirror of
https://github.com/hect0x7/JMComic-Crawler-Python.git
synced 2025-09-26 22:31:30 +08:00
v2.5.24: 更新网页的章节正则表达式 (#309)
This commit is contained in:
parent
97816c7fde
commit
1d6e5c9160
@ -2,7 +2,7 @@
|
||||
# 被依赖方 <--- 使用方
|
||||
# config <--- entity <--- toolkit <--- client <--- option <--- downloader
|
||||
|
||||
__version__ = '2.5.23'
|
||||
__version__ = '2.5.24'
|
||||
|
||||
from .api import *
|
||||
from .jm_plugin import *
|
||||
|
@ -25,31 +25,30 @@ class JmcomicText:
|
||||
pattern_html_album_album_id = compile(r'<span class="number">.*?:JM(\d+)</span>')
|
||||
pattern_html_album_scramble_id = compile(r'var scramble_id = (\d+);')
|
||||
pattern_html_album_name = compile(r'<h1 class="book-name" id="book-name">([\s\S]*?)</h1>')
|
||||
pattern_html_album_episode_list = compile(r'data-album="(\d+)">\n *?<li.*?>\n *'
|
||||
r'第(\d+)話\n([\s\S]*?)\n *'
|
||||
r'<[\s\S]*?>(\d+-\d+-\d+).*?')
|
||||
pattern_html_album_episode_list = compile(r'data-album="(\d+)"\s*?>\s*?<li.*?>\s*?第(\d+)話([\s\S]*?)<[\s\S]*?>(\d+-\d+-\d+).*?')
|
||||
pattern_html_album_page_count = compile(r'<span class="pagecount">.*?:(\d+)</span>')
|
||||
pattern_html_album_pub_date = compile(r'>上架日期 : (.*?)</span>')
|
||||
pattern_html_album_update_date = compile(r'>更新日期 : (.*?)</span>')
|
||||
pattern_html_tag_a = compile(r'<a[^>]*?>\s*(\S*)\s*</a>')
|
||||
# 作品
|
||||
pattern_html_album_works = [
|
||||
compile(r'<span itemprop="author" data-type="works">([\s\S]*?)</span>'),
|
||||
compile(r'<a[^>]*?>(.*?)</a>')
|
||||
pattern_html_tag_a,
|
||||
]
|
||||
# 登場人物
|
||||
pattern_html_album_actors = [
|
||||
compile(r'<span itemprop="author" data-type="actor">([\s\S]*?)</span>'),
|
||||
compile(r'<a[^>]*?>(.*?)</a>')
|
||||
pattern_html_tag_a,
|
||||
]
|
||||
# 标签
|
||||
pattern_html_album_tags = [
|
||||
compile(r'<span itemprop="genre" data-type="tags">([\s\S]*?)</span>'),
|
||||
compile(r'<a[^>]*?>(.*?)</a>')
|
||||
pattern_html_tag_a,
|
||||
]
|
||||
# 作者
|
||||
pattern_html_album_authors = [
|
||||
compile(r'作者: *<span itemprop="author" data-type="author">([\s\S]*?)</span>'),
|
||||
compile(r"<a[^>]*?>(.*?)</a>"),
|
||||
pattern_html_tag_a,
|
||||
]
|
||||
# 點擊喜歡
|
||||
pattern_html_album_likes = compile(r'<span id="albim_likes_\d+">(.*?)</span>')
|
||||
|
@ -71,7 +71,7 @@ class Test_Client(JmTestConfigurable):
|
||||
|
||||
# 测试用例 - 多章本子
|
||||
multi_photo_album_is = str_to_list('''
|
||||
400222
|
||||
282293
|
||||
122061
|
||||
''')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user