Your Name 3 years ago
parent
commit
9f27d04559
1 changed files with 22 additions and 0 deletions
  1. 22 0
      hhh/SEO/curl_click.py

+ 22 - 0
hhh/SEO/curl_click.py

@@ -0,0 +1,22 @@
+import codecs
+import random
+import os
+import time
+fpath=__file__
+fpath=fpath.replace('curl_click.py','urls.csv')
+print(fpath)
+
+lst=[]
+fr=codecs.open(fpath,'r','utf-8')
+lines=fr.readlines()
+for l in lines:
+    elmts=l.split(',')
+    lst.append('https://www.hhh.com.tw'+elmts[0])
+fr.close()
+
+#for i in range(20):
+while True:
+    l=random.choice(lst)
+    os.system('curl '+l)
+    time.sleep(4)
+print(l)