Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json, requests, sys
- from ConfigFile import config
- def GetBoards():
- full_url = configFile.host + "boards.json"
- r = requests.get(full_url)
- return r.json()
- def GetCatalog(url, p_data):
- full_url = configFile.host + url
- r = requests.post(full_url,data=json.dumps(p_data))
- return r.json()
- def GetThread():
- full_url = configFile.host + "/boards.json"
- r = requests.get(full_url)
- return r.json()
- if __name__ == '__main__':
- pass
- #testing function
- print(configFile.host)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement