古剑奇谭三部@古剑博物馆@如影
Browse files
v-corpus-zh/烛龙/古剑奇谭/1.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e22f7cfb7686db25a4e04d59912d4dbd064477bb435878d9e7fb282e9dad0698
|
3 |
+
size 355629
|
v-corpus-zh/烛龙/古剑奇谭/2.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c005c1d6dedee3e1bc3f2b862323c6e3bd7102b49d6c2aa521c8ed26745569db
|
3 |
+
size 387469
|
v-corpus-zh/烛龙/古剑奇谭/3.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8713a35b33ac75d21058596aca73979ac1c8423f2465629b066aee92f54abb31
|
3 |
+
size 180342
|
v-corpus-zh/烛龙/古剑奇谭/古剑@古剑博物馆@如影.py
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import requests
|
2 |
+
|
3 |
+
import re
|
4 |
+
|
5 |
+
baseUrl = r'http://120.25.237.190/ls/gjnew666/gj/1juben/gjqt1juben{:03}.htm'
|
6 |
+
|
7 |
+
baseUrl = r'http://120.25.237.190/ls/gjnew666/gj/2xiaoshuo/test{:03}.htm'
|
8 |
+
|
9 |
+
|
10 |
+
baseUrl = r'http://120.25.237.190/gj/gj3duihua/gj3duihua{:03}.htm'
|
11 |
+
|
12 |
+
|
13 |
+
re_text = re.compile(r'<!--HTMLBUILERPART0-->(.+?)<!--/HTMLBUILERPART0-->', re.RegexFlag.S)
|
14 |
+
|
15 |
+
with open(r'E:\tmp\古剑奇谭_\3.txt', 'w', encoding='utf-8') as f:
|
16 |
+
for i in range(0, 8):
|
17 |
+
|
18 |
+
htm = requests.get(baseUrl.format(i))
|
19 |
+
tmp: list = re_text.findall(htm.content.decode('gbk'))
|
20 |
+
text: str = tmp[0]
|
21 |
+
text = text.replace('<BR>', '\n')
|
22 |
+
|
23 |
+
f.write(text + '\n')
|
24 |
+
|
25 |
+
print(i)
|
26 |
+
|