예제 #1
0
파일: main.py 프로젝트: shenpingle/tray
def crawler_first_half_year():
    #抓取上半年度
    logincounter = 6
    while logincounter:
        print logincounter
        loginTag = login()
        print u"login Tag(first_half_year):",loginTag
        if loginTag:
            break
        elif logincounter == 1:
            #
            print u"6次login(first_half_year)失败,重新尝试此操作"
            print u"本次任务已经结束"
            return
        else:
            cookieManager.clear()
        logincounter = logincounter -1
        time.sleep(8)
    deletedance.dodelete(halfyear_before_cal())
    report_query.MDR_Report_Query(halfyear_before_cal())
예제 #2
0
파일: main.py 프로젝트: shenpingle/tray
def crawler_current_week():
    #抓取本周
    logincounter = 6
    while logincounter:
        print logincounter
        loginTag = login()
        print u"login Tag(current_week):",loginTag
        if loginTag:
            break
        elif logincounter == 1:
            #
            print u"6次login(current_week)失败,重新尝试此操作"
            print u"本次任务已经结束"
            return
        else:
            cookieManager.clear()
        logincounter = logincounter -1
        time.sleep(8)

    deletedance.dodelete(current_week_cal())
    report_query.MDR_Report_Query(current_week_cal())
예제 #3
0
파일: main.py 프로젝트: shenpingle/tray
def crawler_today():
    #抓取今天
    logincounter = 6
    while logincounter:
        print logincounter
        loginTag = login()
        print u"login Tag(today):",loginTag
        if loginTag:
            break
        elif logincounter == 1:
            #
            print u"6次login(today)失败,重新尝试此操作"
            print u"本次任务已经结束"
            return
        else:
            cookieManager.clear()
        logincounter = logincounter -1
        time.sleep(8)

    deletedance.dodelete(toady_cal())
    report_query.MDR_Report_Query(toady_cal())
예제 #4
0
파일: main.py 프로젝트: shenpingle/tray
def crawler_anytime2(start, end):
    #
    logincounter = 6
    while logincounter:
        print logincounter
        loginTag = login()
        print u"login Tag(anytime2):",loginTag
        if loginTag:
            break
        elif logincounter == 1:
            #
            print u"6次login(anytime2)失败,重新尝试此操作"
            print u"本次任务已经结束"
            return
        else:
            cookieManager.clear()
        logincounter = logincounter -1
        time.sleep(1)

    deletedance.dodelete(anytime2(start, end))
    report_query.MDR_Report_Query(anytime2(start, end))
예제 #5
0
파일: mdr24.py 프로젝트: shenpingle/tray
def crawler_today():
    #抓取今天
    logincounter = 6
    while logincounter:
        print logincounter
        loginTag = login()
        print u"login Tag(auto today):",loginTag
        if loginTag:
            break
        elif logincounter == 1:
            #
            print u"6次login(auto today)失败,重新尝试此操作"
            print u"本次任务已经结束"
            return
        else:
            cookieManager.clear()
        logincounter = logincounter -1
        time.sleep(8)

    deletedance.dodelete(toady_cal())
    report_query.MDR_Report_Query(toady_cal())