Your Name 3 år sedan
förälder
incheckning
199e588717
1 ändrade filer med 30 tillägg och 23 borttagningar
  1. 30 23
      hhh/tests/phantomtest.py

+ 30 - 23
hhh/tests/phantomtest.py

@@ -193,35 +193,36 @@ def gen_long():
         qlist.append(fullname+" 設計師")
         qlist.append(fullname+" 設計 師")
         qlist.append(abvname+"設計師")
-#        qlist.append(abvname+" 設計師")
+        qlist.append(abvname+" 設計師")
         qlist.append(abvname+"費用")
         qlist.append(abvname+"評價")
-#        qlist.append(abvname+" 費用")
-#        qlist.append(abvname+" 評價")
-#        qlist.append(abvname+"專線")
-#        qlist.append(abvname+"免費專線")
-#        qlist.append(abvname+"ptt")
+        qlist.append(abvname+" 費用")
+        qlist.append(abvname+" 評價")
+        qlist.append(abvname+"專線")
+        qlist.append(abvname+"免費專線")
+        qlist.append(abvname+"ptt")
         qlist.append(abvname+" 設計 師")
 
-#        qlist.append("幸福空間"+abvname)
-#        for d in ds:
-#            qlist.append(d+" 設計師")
-#            qlist.append(d+"設計師")
-
-#            qlist.append(abvname+d)
-#            qlist.append(fullname+d)
-#            qlist.append(d+"設計師設計費")
-#            qlist.append(d+"設計師費用")
-#            qlist.append(d+"設計師評價")
-#            qlist.append("幸福空間"+d+"設計師")
+        qlist.append("幸福空間"+abvname)
+        for d in ds:
+            qlist.append(d+" 設計師")
+            qlist.append(d+"設計師")
+
+            qlist.append(abvname+d)
+            qlist.append(fullname+d)
+            qlist.append(d+"設計師設計費")
+            qlist.append(d+"設計師費用")
+            qlist.append(d+"設計師評價")
+            qlist.append("幸福空間"+d+"設計師")
 #            qlist.append("幸福空間設計師"+d)
 #            qlist.append("幸福 設計師 "+d)
 #            qlist.append(d+"免費專線")
 
-print(qlist)
 gen_long()
-#sys.exit()
+print(qlist)
 
+#sys.exit()
+#qlist=['京璽設計','京璽設計 設計師','京璽設計 幸福','京璽設計 幸福空間','京璽設計 國際','京璽設計']
 #qlist=['IS國際設計費用?','IS國際設計電話?','上築設計的室內設計師是誰?','上築設計獎項?','上築設計免費專線?']
 
 client = docker.from_env()
@@ -248,7 +249,7 @@ time.sleep(10)
 #driver = webdriver.Remote(desired_capabilities=options.to_capabilities())
 
 options = webdriver.ChromeOptions()
-options.add_argument("--proxy-server=socks5://172.104.67.159:8180")
+#options.add_argument("--proxy-server=socks5://172.104.67.159:8180")
 
 
 driver = webdriver.Remote(
@@ -270,10 +271,16 @@ driver.set_window_size(1400,1000)
 #sys.exit()
 
 
-#### qlist=get_list()
+##### qlist=get_list()
+#qlist=['德本迪設計','德本迪設計 宜荷','德本迪設計 室內設計','德本迪設計 裝修','德本迪設計 宋雯鈴','德本迪設計 宋志鍾','德本迪設計 室內設計諮詢','德本迪設計 系統家具']
 
+#qlist=['奧立佛竺居','奧立佛 竺居','奧立佛竺居 幸福','奧立佛竺居 免費專線','奧立佛竺居 幸福空間','奧立佛竺居 設計師']
+#qlist=['大進設計 幸福','大進設計 幸福空間','大進設計幸福空間設計師','幸福空間大進設計']
+#qlist+=['尚藝室內裝修 幸福','尚藝室內裝修 幸福 設計師','尚藝室內裝修 幸福 設計','大言室內裝修 幸福','客林渥 幸福','湧緻開發工程 幸福']
+#qlist=['橙果創意','橙果創意 設計師','橙果創意 室內設計','橙果創意 幸福 空間','橙果創意 幸福空間設計師']
 while True:
     q=random.choice(qlist)
+    print(q)
 #    prob=random.randint(0,4)
     prob=random.randint(0,2)
 
@@ -287,9 +294,9 @@ while True:
     #    intsleep=random.randint(20,40)
 #    intsleep=random.randint(7,20)
 #    intsleep=random.randint(9,20)
-    intsleep=random.randint(60,150)
+#    intsleep=random.randint(60,150)
 
-#    intsleep=random.randint(5,12)
+    intsleep=random.randint(5,12)
 #    intsleep=random.randint(3,6)
 
     time.sleep(intsleep)