|
@@ -4,9 +4,9 @@ custlist = ["The Icons_EN", "The Icons_ZH"]
|
|
|
|
|
|
db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/seo?charset=utf8mb4')
|
|
|
|
|
|
-def reset(cust):
|
|
|
- k=db.query('select * from seo.seo_nton_custkw where cust="' + cust + '"')
|
|
|
- u=db.query('select * from seo.seo_nton_custurl where cust="' + cust + '"')
|
|
|
+def reset(cust): #USING CUSTKW2 AND CUSTURL2 BECAUSE THE FIRST ONE IS MESSING UP. REVERT BACK LATER.
|
|
|
+ k=db.query('select * from seo.seo_nton_custkw2 where cust="' + cust + '" and disused=0')
|
|
|
+ u=db.query('select * from seo.seo_nton_custurl2 where cust="' + cust + '" and disused=0')
|
|
|
#TAG ABOVE AND UNTAG BELOW FOR DEBUG
|
|
|
#ds=hhhdb.query('select * from seo.seo_articles where cust=')
|
|
|
kwd=[]
|
|
@@ -37,6 +37,7 @@ while True:
|
|
|
for i in range(10):
|
|
|
print("Run " + str(runcount+1))
|
|
|
target = random.choice(data) # START HERE
|
|
|
+ print(target)
|
|
|
target_kw = random.choice(target[0])
|
|
|
print(target_kw)
|
|
|
statuscode = execute(target[1], target_kw, target[2]) # target[1] is URL list
|