|
@@ -42,15 +42,15 @@ brands={domain:'hhh'}
|
|
|
|
|
|
data = getdata()
|
|
|
|
|
|
-extras = [['https://hhh.com.tw/HHH_NEW/designers_static/596.html', '百玥空間設計'], ['https://hhh.com.tw/HHH_NEW/designers_static/767.html', 'ACE 空間制作所'], ['https://hhh.com.tw/HHH_NEW/designers_static/767.html', 'ACE空間制作所']]
|
|
|
+extras = [['https://hhh.com.tw/HHH_NEW/designers_static/596.html', '百玥空間設計'], ['https://hhh.com.tw/HHH_NEW/designers_static/767.html', 'ACE 空間制作所'], ['https://hhh.com.tw/HHH_NEW/designers_static/767.html', 'ACE空間制作所'],['傳奇室內裝修設計','https://hhh.com.tw/HHH_NEW/designers/index_designerList.php?cid=862'],['傳奇設計','https://hhh.com.tw/HHH_NEW/designers/index_designerList.php?cid=862'],['傳奇室內裝修設計','https://hhh.com.tw/HHH_NEW/designers/index_designerList.php?cid=862'],['傳奇設計','https://hhh.com.tw/HHH_NEW/designers/index_designerList.php?cid=862']]
|
|
|
times = 5
|
|
|
|
|
|
for e in extras:
|
|
|
for i in range(times):
|
|
|
data.append(e)
|
|
|
|
|
|
+runcount=0
|
|
|
while True:
|
|
|
-
|
|
|
if len(priority)!=0: # CURRENTLY UNUSED
|
|
|
target = random.choice(priority)
|
|
|
ql = target[1:]
|
|
@@ -73,8 +73,10 @@ while True:
|
|
|
target_domain = target_domain.replace('hhh.com.tw', 'm.hhh.com.tw')
|
|
|
print(target_domain) # mobile version?
|
|
|
print(ql)
|
|
|
- time.sleep(3)
|
|
|
statuscode = execute(domain, target_domain, brands, ql)
|
|
|
if statuscode == 444:
|
|
|
- time.sleep(120)
|
|
|
+ print("Completed ", runcount, " times before being caught")
|
|
|
+ time.sleep(300)
|
|
|
+ else:
|
|
|
+ runcount+=1
|
|
|
time.sleep(60)
|