wf-market/api.py

13 lines
320 B
Python
Raw Normal View History

2022-11-04 13:16:34 +05:00
import requests
2022-11-07 03:14:05 +05:00
import os, getpass, re, pickle, getpass, json
2022-11-04 13:16:34 +05:00
class Session():
def __init__(self):
self.client = requests.Session()
def api_request(self, url='/', method='get', **kwargs):
2022-11-07 03:14:05 +05:00
return json.loads(getattr(self.client, method)('https://api.warframe.market/v1' + url, **kwargs).text)
2022-11-04 13:16:34 +05:00