Advertisement
Guest User

Untitled

a guest
Aug 4th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. import json, requests, sys
  2. from ConfigFile import config
  3.  
  4.  
  5. def GetBoards():
  6.     full_url = configFile.host + "boards.json"
  7.     r = requests.get(full_url)
  8.     return r.json()
  9.  
  10. def GetCatalog(url, p_data):
  11.     full_url = configFile.host + url
  12.     r = requests.post(full_url,data=json.dumps(p_data))
  13.     return r.json()
  14.    
  15. def GetThread():
  16.     full_url = configFile.host + "/boards.json"
  17.     r = requests.get(full_url)
  18.     return r.json()
  19.  
  20. if __name__ == '__main__':
  21.     pass
  22.  
  23. #testing function
  24. print(configFile.host)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement