Commit cea1d65c authored by lixiaofang's avatar lixiaofang

add

parent 6050947b
......@@ -8,8 +8,6 @@ import traceback
from log_settings import *
import logging
from auto_request import logins, reply, get_offline_comment, time_convs
# from auto_request import host, user, port, db, passwd
auto_click_url = "http://earth.igengmei.com/api/v1/like"
auto_reply_url = "http://earth.igengmei.com/api/v1/reply/create"
auto_follow_url = "http://earth.igengmei.com/api/v1/follow"
......@@ -23,16 +21,18 @@ auto_urge_url = "http://earth.igengmei.com/api/v1/user/urge"
# 评论取自评论库,并自动随机关联马甲
#
# 注意需要禁止本帖作者评论
host = "rm-2zeaut61u9sm21m0b.mysql.rds.aliyuncs.com"
host = ""
user = "work"
passwd = "Gengmei123"
db = "alpha"
port ="3306"
port =3306
def get_data(numtime):
try:
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=port)
pc = pymysql.connect(host="rm-2zeaut61u9sm21m0b.mysql.rds.aliyuncs.com", user="work", passwd="Gengmei123", db="alpha", port=3306)
cursor = pc.cursor()
cursor.execute(
"SELECT id FROM topic WHERE is_online =1 and create_time >= %s and (content_level = 4 or content_level = 5) and user_id in (select user_id from user_extra where is_shadow = 0)",
......
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