Commit f0a1aadd authored by lixiaofang's avatar lixiaofang

add

parent 853a9447
...@@ -2,10 +2,9 @@ import time ...@@ -2,10 +2,9 @@ import time
import pymysql import pymysql
import random import random
import traceback import traceback
from log_settings import *
import logging import logging
from auto_request import login, click, time_convs from vest.request.auto_request import login, click, time_convs
from auto_request import host, user, db, passwd from vest.request.auto_request import host, user, db, passwd
def get_data(numtime, numtime2): def get_data(numtime, numtime2):
...@@ -35,9 +34,8 @@ def get_data(numtime, numtime2): ...@@ -35,9 +34,8 @@ def get_data(numtime, numtime2):
def one_seven_star_topic(): def one_seven_star_topic():
try: try:
numtime, numtime2 = time_convs(1, 7) numtime, numtime2 = time_convs(7, 1)
user_id = get_data(numtime, numtime2) user_id = get_data(numtime, numtime2)
dicts = {}
logging.info("get user_id:%s" % user_id) logging.info("get user_id:%s" % user_id)
for i in user_id: for i in user_id:
rand_num = random.randint(0, 1) rand_num = random.randint(0, 1)
......
...@@ -40,7 +40,7 @@ def get_data(numtime, numtime2): ...@@ -40,7 +40,7 @@ def get_data(numtime, numtime2):
def true_click_one(): def true_click_one():
try: try:
numtime, numtime2 = time_conv(150, 0) numtime, numtime2 = time_conv(5, 0)
user_id = get_data(numtime, numtime2) user_id = get_data(numtime, numtime2)
for i in user_id: for i in user_id:
cook = login() cook = login()
......
...@@ -2,10 +2,9 @@ import time ...@@ -2,10 +2,9 @@ import time
import pymysql import pymysql
import random import random
import traceback import traceback
from log_settings import *
import logging import logging
from auto_request import login, click, time_convs from vest.request.auto_request import login, click, time_convs
from auto_request import host, user, db, passwd from vest.request.auto_request import host, user, db, passwd
def get_data(numtime, numtime2): def get_data(numtime, numtime2):
...@@ -35,7 +34,7 @@ def get_data(numtime, numtime2): ...@@ -35,7 +34,7 @@ def get_data(numtime, numtime2):
def one_seven_topic_comment(): def one_seven_topic_comment():
try: try:
numtime, numtime2 = time_convs(1, 7) numtime, numtime2 = time_convs(7, 1)
user_id = get_data(numtime, numtime2) user_id = get_data(numtime, numtime2)
logging.info("get user_id:%s" % user_id) logging.info("get user_id:%s" % user_id)
for i in user_id: for i in 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