pluGET/src/utils/web_request.py

10 lines
220 B
Python
Raw Normal View History

# Handles the web requests
import requests
def doAPIRequest(url):
headers = {'user-agent': 'pluGET'}
response = requests.get(url, headers=headers)
packageDetails = response.json()
return packageDetails