Python Roblox issue with buying limited items
问题 So in roblox, I am trying to send a request to thier api to buy an item. Here is the code: def buyItem(self,itemid, cookie, price=None): info = self.getItemInfo(itemid) url="https://economy.roblox.com/v1/purchases/products/{}".format(info["ProductId"]) print(url) cookies = { '.ROBLOSECURITY': cookie } headers = { 'X-CSRF-TOKEN': self.setXsrfToken(cookie) } data={ 'expectedCurrency': 1, 'expectedPrice': info["PriceInRobux"] if price == None else price, 'expectedSellerId': info["Creator"]["Id"]