John-Hong há 2 anos atrás
pai
commit
0f2ebf29cb
4 ficheiros alterados com 125 adições e 118 exclusões
  1. 6 0
      .idea/vcs.xml
  2. 112 112
      data.txt
  3. 7 6
      test4.py
  4. BIN
      tutorial.db

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>

Diff do ficheiro suprimidas por serem muito extensas
+ 112 - 112
data.txt


+ 7 - 6
test4.py

@@ -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');

BIN
tutorial.db


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff