Commit f578173f authored by lixiaofang's avatar lixiaofang

time

parent 297c9dd6
......@@ -28,13 +28,13 @@ def get_data():
def principal_offline_comment1():
try:
logging.info("comment offline pictorial")
user_id = get_data()
dicts = {}
for i in user_id:
for num in range(4):
follow_num = random.randint(5, 20)
for num in range(follow_num):
majia_user_id = get_majia_reply(i[0])
cook = logins(majia_user_id)
comment = get_pictorial_comment()
......
......@@ -42,21 +42,6 @@ auto_reply_url = "http://earth.iyanzhi.com/api/v1/reply/create"
auto_follow_url = "http://earth.iyanzhi.com/api/v1/follow"
auto_urge_url = "http://earth.iyanzhi.com/api/v1/user/urge"
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'alpha',
'USER': 'work',
'PASSWORD': 'oars152!traipseize738',
'HOST': '172.17.40.136',
'PORT': '3306',
'OPTIONS': {
"init_command": "SET foreign_key_checks = 0;",
"charset": "utf8mb4",
}
}
}
host = DATABASES['default']['HOST']
user = DATABASES['default']['USER']
......@@ -462,7 +447,7 @@ def pictorial_reply(cookies_get, id, content):
data=post_dict)
logging.info("response.text:%s" % response.text)
get_error(response.text,"pictorial_reply",id)
get_error(response.text, "pictorial_reply", id)
except:
logging.error("catch exception,logins:%s" % traceback.format_exc())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment