Advertisement
Guest User

Untitled

a guest
Jan 10th, 2018
1,194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. import requests
  2. import json
  3.  
  4. search = {
  5.         "exchange":
  6.         {
  7.             "status":
  8.                 {
  9.                     "option":
  10.                         "online"},
  11.             "have":
  12.                 ["fusing"],
  13.             "want":
  14.                 ["chaos"]
  15.         }
  16.     }
  17.  
  18.     url = 'http://www.pathofexile.com/trade/exchange/Abyss'
  19.  
  20.     headers = {'content-type': 'application/json',
  21.                'X-Requested-With' : 'XMLHttpRequest'}
  22.  
  23.  
  24.     response = requests.get(url, data=json.dumps(search), headers=headers)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement