|
@@ -16,13 +16,11 @@ import redis
|
|
|
import time
|
|
|
import fire
|
|
|
import dataset
|
|
|
-import pymysql
|
|
|
-pymysql.install_as_MySQLdb()
|
|
|
|
|
|
|
|
|
db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/seo?charset=utf8mb4')
|
|
|
lst=[]
|
|
|
-cursor = db.query('SELECT query FROM seo.hhh_gsc_imp where position >=2.0 and position <=9.0 order by rand();')
|
|
|
+cursor = db.query('SELECT query FROM seo.hhh_gsc_imp where position >=2.5 and position <=8.5 order by rand();')
|
|
|
|
|
|
for c in cursor:
|
|
|
lst.append([c['query']])
|