I don't have a specific solution though: after leaving the script for a few days and trying it today with the same code, it worked. If you encounter such problems: It may well be that the error lies with Steam, or that the Steam servers are blocking your script. Try it a day later with a different ip and new cookie data etc.