mirror of
https://github.com/Neocky/pluGET.git
synced 2024-04-29 16:12:30 +00:00
993d438ff7
Implemented new and not complete config handling and implemented command parameter support
10 lines
224 B
Python
10 lines
224 B
Python
# 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
|