|
@@ -84,15 +84,16 @@ def get_text(page_url):
|
|
|
# f.write(str) # 将字符串写入文件中
|
|
|
# if ("llo" in "hello, python"):
|
|
|
# time.sleep(1);
|
|
|
- url = 'https://m.2188c.com'+pt_next
|
|
|
- # with open('line.txt', 'w') as f: # 设置文件对象
|
|
|
- # f.write(url) # 将字符串写入文件中
|
|
|
- print(title, pt_next)
|
|
|
- get_text(url)
|
|
|
+ if pt_next != '' and pt_next != '/txt/31063/':
|
|
|
+ url = 'https://m.2188c.com'+pt_next
|
|
|
+ # with open('line.txt', 'w') as f: # 设置文件对象
|
|
|
+ # f.write(url) # 将字符串写入文件中
|
|
|
+ print(title, pt_next)
|
|
|
+ get_text(url)
|
|
|
|
|
|
# 11649
|
|
|
|
|
|
# get_text('https://m.2188c.com/txt/31063/93347948.html');
|
|
|
# get_text('https://m.2188c.com/txt/31063/85901149.html');
|
|
|
# get_text('https://m.2188c.com/txt/31063/82277794.html');
|
|
|
-get_text('https://m.2188c.com/txt/31063/21487666_3.html');
|
|
|
+get_text('https://m.2188c.com/txt/31063/88316053.html');
|