We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b070cc commit 8c6aa10Copy full SHA for 8c6aa10
1 file changed
comic-index.py
@@ -24,8 +24,10 @@
24
regex7 = re.compile(r"<li><a\stitle=\"[^\"]+\"\shref=\"([^\"]+)\"\s*>(.+)</a></li>")
25
#过滤最新章回
26
regex8 = re.compile(r"g_last_update\s=\s\"([^\"]+)\"")
27
+#多作者情况过滤
28
+regex9 = re.compile(r"(<[^\>]+>)")
29
-url_test = "http://manhua.dmzj.com/meishidefulu/"
30
+url_test = "http://manhua.dmzj.com/miaogongzhu/"
31
32
socket = urllib2.urlopen(url_test)
33
content = socket.read()
@@ -47,6 +49,9 @@
47
49
for x in update:
48
50
chapters.append((x[0], x[1]))
51
52
+for x in regex9.findall(author):
53
+ author = author.replace(x, "")
54
+
55
with open("output.txt", "w") as f:
56
f.write("封面 - " + cover + "\n")
57
f.write("漫画名 - " + name + "\n")
0 commit comments