コード例 #1
0
ファイル: main.py プロジェクト: bryrmeg/13
import programs

ans = 999
while ans > 0:
    print "[1] Add users"
    print "[2] Show account information"
    print "[3] Auto-buy contracts"
    print "[4] Relist contracts"
    print "[5] Transfer coins to main account"
    print "[0] Exit"
    ans = raw_input("Select option: ")
    try:
        ans = int(ans)
    except ValueError:
        ans = 999
    if ans == 1:
        programs.Users()
    if ans == 2:
        programs.accountInformation()
    if ans == 3:
        hours = raw_input("How many hours to run: ")
        programs.autoContracts(hours=hours)
    if ans == 4:
        programs.relistContracts(hours=1)
    if ans == 5:
        programs.transferMoney()
コード例 #2
0
ファイル: FUTClient.py プロジェクト: bryrmeg/13
    def getUnAssignedIDs(self):
        watchListId = list()
        requestor = UrlRequestor("https://utas.s2.fut.ea.com/ut/game/fifa13/purchased/items")
        requestor.addHeader({"Content-Type": "application/json"})
        requestor.addHeader({"Cookie": self.EASW_KEY + ";" + self.EASF_SESS + "; " + self.FUTPHISHING + "; "})
        requestor.addHeader({"X-UT-SID": self.XUT_SID})
        requestor.addHeader({"x-http-method-override": "GET"})
        requestor.open()
        if not requestor.status:
            logging.error("Error while trying to get unassigned ids")
            return watchListId
        returnData = requestor.getReturnData().get("itemData")
        if requestor.status and isinstance(returnData, list):
            for card in returnData:
                watchListId.append(card.get("id"))
        return watchListId

    def quickSell(self, itemID):
        requestor = UrlRequestor("https://utas.s2.fut.ea.com/ut/game/fifa13/item/" + str(itemID))
        requestor.addHeader({"Content-Type": "application/json"})
        requestor.addHeader({"Cookie": self.EASW_KEY + ";" + self.EASF_SESS + "; " + self.FUTPHISHING + "; "})
        requestor.addHeader({"x-http-method-override": "DELETE"})
        requestor.addHeader({"X-UT-Embed-Error": True})
        requestor.open()


if __name__ == "__main__":
    import programs

    programs.autoContracts()