Commit bc1af3dc authored by lixiaofang's avatar lixiaofang

hh

parent ce8050dc
This diff is collapsed.
......@@ -25,15 +25,16 @@ def index_first():
def login(cookies,user,pwd):
post_dict={
'account_type':user,
'pwd':pwd
'account_type':2,
'pwd':pwd,
'email':user
}
response=requests.post(
response = requests.post(
url=login_url,
data=post_dict,
cookies=cookies
)
# print(response.text,'url')
print(response.text, 'url')
def reply(cookies_get,id,content):
......@@ -64,7 +65,7 @@ def get_data(numtime):
cursor.execute("SELECT id FROM topic WHERE create_time LIKE '%%%%%s%%%%' " %numtime)
data = cursor.fetchall()
user_id = list(data)
# print("Database version : %s " % user_id)
print("Database version : %s " % user_id)
db.close()
return user_id
......
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