noodles 2 years ago
parent
commit
ebb7c58429
1 changed files with 1 additions and 1 deletions
  1. 1 1
      run4.py

+ 1 - 1
run4.py

@@ -76,7 +76,7 @@ def brower_start(port):
 
 def get_next_job(db):
     result = {}
-    result = db.query('select * from error_list2 where check_=0 ORDER BY RAND() limit 1')
+    result = db.query('select * from error_list2 where check_=0 ORDER BY RAND() limit 10')
     url_pd = pd.DataFrame([dict(i) for i in result])
     url_pd['fid'] = url_pd['item_url'].apply(lambda x: x.split('data=')[1].split('!')[3])
     # url_pd['item_url'] = url_pd['fid'].apply(lambda x: 'https://www.google.com.tw/maps/@24.1753633,120.6747136,15z/data=!4m5!3m4!1s{}!8m2!3d24.1760271!4d120.6705323'.format(x))