(accountText, rconn, spiderName)
删除某个账号的Cookie
删除某个账号的Cookie
删除某个账号的Cookie
def removeCookie(accountText, rconn, spiderName):
    """ 删除某个账号的Cookie """
    rconn.delete("%s:Cookies:%s" % (spiderName, accountText))
    cookieNum = str(rconn.keys()).count("zhihuspider:Cookies")
    logger.warning("The num of the cookies left is %s" % cookieNum)
    if cookieNum == 0:
        logger.warning("Stopping...")
        os.system("pause")
def removeCookie ( accountText , rconn , spiderName ) : rconn . delete ( "%s:Cookies:%s" % ( spiderName , accountText ) ) cookieNum = str ( rconn . keys ( ) ) . count ( "zhihuspider:Cookies" ) logger . warning ( "The num of the cookies left is %s" % cookieNum ) if cookieNum == 0 : logger . warning ( "Stopping..." ) os . system ( "pause" )