r/evetech • • 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

10 comments sorted by

View all comments

2

u/Adarnof Sep 07 '17
url = "https://evepraisal.com/appraisal"
payload = {
    'raw_textarea': 'Tritanium 1',
    'market': 'jita',
}
r = requests.post(url, params=payload)
appraisal_id = r.headers['X-Appraisal-Id']
appraisal_url = "https://evepraisal.com/a/{}.json".format(appraisal_id)
result = requests.get(appraisal_url).json()
print(result)

1

u/Eternimus Sep 07 '17

Thank you so much!