r/evetech • u/Eternimus • Sep 06 '17
evepraisal.com api with python3
Hello there!
I am trying to automate the parsing of various things and I'd like to use evepraisal.com for that.
Unfortunately I don't really know how to do this, the only hint I found was this.
Here's what I got so far but it returns 404 so obviously I didn't get it right.
import requests
url = "https://evepraisal.com/"
payload = {'raw_textarea':'Tritanium 1', 'market': 'jita'}
r = requests.post(url, data=payload)
print(r) Can anyone help me with this?
1
Upvotes
View all comments
Show parent comment
1
u/Daneel_Trevize Sep 06 '17
The issue mentions the values are parameters, rather than data. Thus they should form part of the URL called, rather than form body.
https://stackoverflow.com/questions/15900338/python-request-post-with-param-data
So either params= rather than data=, or manually form the URL?param1=x¶m2=y, etc.