instatag/instatag.py
def create_random_sleep(index=1,min_time=5,max_time=60):
    '''
    This function generate sleep time with random processes
    :param index: index to determine first page  and messages(index = 0 is for first page)
    :param min_time: minimum time of sleep
    :param max_time: maximum time of sleep
    :type index:int
    :type min_time:int
    :type max_time:int
    :return: time of sleep as integer (a number between max and min)
    '''
    if index==0:
        time_sleep = 5
        if DEBUG==True:
            print("Wait "+str(time_sleep)+" sec for first search . . .")
    else:
        time_sleep = randint(min_time, max_time)
        if DEBUG==True:
            print("Wait "+str(time_sleep)+" sec for next search . . .")
    if DEBUG==True:
        print_line(70,"*")
    return time_sleep

    This function generate sleep time with random processes
    :param index: index to determine first page  and messages(index = 0 is for first page)
    :param min_time: minimum time of sleep
    :param max_time: maximum time of sleep
    :type index:int
    :type min_time:int
    :type max_time:int
    :return: time of sleep as integer (a number between max and min)
    
This function generate sleep time with random processes
This function generate sleep time with random processes
def create_random_sleep(index=1,min_time=5,max_time=60):
    if index==0:
        time_sleep = 5
        if DEBUG==True:
            print("Wait "+str(time_sleep)+" sec for first search . . .")
    else:
        time_sleep = randint(min_time, max_time)
        if DEBUG==True:
            print("Wait "+str(time_sleep)+" sec for next search . . .")
    if DEBUG==True:
        print_line(70,"*")
    return time_sleep
def create_random_sleep ( index = 1 , min_time = 5 , max_time = 60 ) : if index == 0 : time_sleep = 5 if DEBUG == True : print ( "Wait " + str ( time_sleep ) + " sec for first search . . ." ) else : time_sleep = randint ( min_time , max_time ) if DEBUG == True : print ( "Wait " + str ( time_sleep ) + " sec for next search . . ." ) if DEBUG == True : print_line ( 70 , "*" ) return time_sleep
This function generate sleep time with random processes
This function generate sleep time with random processes
'''
    This function generate sleep time with random processes
    :param index: index to determine first page  and messages(index = 0 is for first page)
    :param min_time: minimum time of sleep
    :param max_time: maximum time of sleep
    :type index:int
    :type min_time:int
    :type max_time:int
    :return: time of sleep as integer (a number between max and min)
    '''
time of sleep as integer (a number between max and min)
time of sleep as integer ( a number between max and min )
index
index to determine first page  and messages(index = 0 is for first page)
index to determine first page and messages ( index = 0 is for first page )
min_time
minimum time of sleep
minimum time of sleep
max_time
maximum time of sleep
maximum time of sleep