Your Name 3 年之前
父节点
当前提交
9f27d04559
共有 1 个文件被更改,包括 22 次插入0 次删除
  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)