mirror of
https://github.com/Neocky/pluGET.git
synced 2024-04-29 16:12:30 +00:00
Started the new config handling
Implemented new and not complete config handling and implemented command parameter support
This commit is contained in:
9
old_src/utils/web_request.py
Normal file
9
old_src/utils/web_request.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# Handles the web requests
|
||||
import requests
|
||||
|
||||
|
||||
def doAPIRequest(url):
|
||||
headers = {'user-agent': 'pluGET/1.0'}
|
||||
response = requests.get(url, headers=headers)
|
||||
packageDetails = response.json()
|
||||
return packageDetails
|
||||
Reference in New Issue
Block a user