0

我让这条鳕鱼在一个游戏网站上工作了很长时间,但现在他们改变了点击它的方式:-

def formRaid():
    #print formerID
    one = 1
    while one == 1:
        try:
            global _startTime
            _startTime = datetime.datetime.now()

            formpage = alo("http://"+server+".outwar.com/formraid.php?target=" + bossToRaidId+"&suid="+FORMER_ID).read()
            codeID = formpage.split('codeid" value="')[1].split('">')[0]

            Form = alo2("http://"+server+".outwar.com/formraid.php?target=" + bossToRaidId, "target=" + bossToRaidId + "&codeid=" + codeID + "&formtime=3&submit=Launch!").read()

            global RAID_ID, RAID_NAME
            RAID_ID = getRaidID(Form)
            RAID_NAME = getRaidName(Form)

            print ""
            print "***" + RAID_NAME + " Formed."
            one = 0
            return True

        except IndexError:
            print "Forming Error, retrying...."
            time.sleep(1)

现在我必须点击一个按钮再去一次,这个按钮的信息是:-

<input type="submit" value="Join this Raid!" name="submit">

我如何进行以下使用的点击:-

formpage = alo("http://"+server+".outwar.com/formraid.php?target=" + bossToRaidId+"&suid="+FORMER_ID).read()
codeID = formpage.split('codeid" value="')[1].split('">')[0]

或用于:-

Form = alo2("http://"+server+".outwar.com/formraid.php?target=" + bossToRaidId, "target=" + bossToRaidId + "&codeid=" + codeID + "&formtime=3&submit=Launch!").read()

单击该按钮而不是以前的操作?

4

1 回答 1

0

opener.open("http://"+server+".outwar.com/formraid.php?target=" + bossToRaidId + "&suid="+FORMER_ID, "formtime=3&message=&bomb=none&submit=Launch!")

仅适用于 2.7 python

于 2013-04-28T11:55:03.347 回答