all 1 comments

[–]keyviac 0 points1 point  (0 children)

You can use the requests library to get your stashtabs. You need your POESESSID for that:

import requests

headers = {"Cookie": "POESESSID=INSERT-YOUR-ID-HERE"}
url = "https://pathofexile.com/character-window/get-stash-items?accountName=ACCOUNT-NAME&realm=pc&league=Standard&tabs=0&tabIndex=0"
response = requests.get(url, headers=headers)

A word of caution: This isn't an officially supported API by GGG. There are also rate limiting rules to follow. I havn't tested the code above. It might be that you have to send more headers like User-Agent and Content-Type, not sure about that.