Files
new_dbsync/url/process.py
T
2025-05-20 12:02:07 -04:00

18 lines
427 B
Python

__author__ = 'Wendell Jones'
import requests
class Loadurl():
def __init__(self):
pass
def get_data(self,weburl):
try:
showresponse = requests.get(weburl)
except requests.exceptions.ConnectionError as e:
print('Unable to connect and get JSON data for url ' + str(weburl))
else:
return(showresponse.text)
def __del__(self):
pass