|
@@ -19,17 +19,27 @@ import time
|
|
|
import sys
|
|
|
import codecs
|
|
|
import random
|
|
|
+import platform
|
|
|
+import socket
|
|
|
import os
|
|
|
import time
|
|
|
+import datetime
|
|
|
import requests
|
|
|
#JNOTE: CLICK TWICE
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
driver=None
|
|
|
dockername='p4444'
|
|
|
|
|
|
is_docker=True
|
|
|
#is_docker=False
|
|
|
db = dataset.connect('postgresql://postgres:eyJhbGciOiJI@172.105.241.163:5432/postgres')
|
|
|
+table=db['prog_launch']
|
|
|
+unamestr=str(platform.uname())
|
|
|
+table.insert({'uname':unamestr,'progname':os.path.basename(__file__),'dt':datetime.datetime.now()})
|
|
|
+
|
|
|
url_white=[]
|
|
|
cursor=db.query("select url from seo_whitelist where cust='啟翔'")
|
|
|
for c in cursor:
|
|
@@ -301,8 +311,8 @@ if r==11:
|
|
|
cust='啟翔'
|
|
|
plan='形象SEO'
|
|
|
postfix=''
|
|
|
- domain=['65c248e0fd89780001035964']
|
|
|
- kw='啟翔輕金屬工序'
|
|
|
+ domain=['abba-tech-aluminum']
|
|
|
+ kw='啟翔輕金屬產品'
|
|
|
prefix=''
|
|
|
positive=['']
|
|
|
|