Spaces:
Running
Running
BraydenMoore
commited on
Commit
·
525173b
1
Parent(s):
56877e0
Update main.py
Browse files
main.py
CHANGED
@@ -49,7 +49,7 @@ def proxy(url):
|
|
49 |
clean_url = url.replace('proxy/', '')
|
50 |
print('Cleaned URL:', clean_url)
|
51 |
|
52 |
-
req = requests.get(f'
|
53 |
|
54 |
content_type = req.headers['content-type']
|
55 |
|
@@ -79,7 +79,7 @@ def index():
|
|
79 |
time = dt.datetime.now(timezone)
|
80 |
loc = info['loc']
|
81 |
X, Y = latlon_to_pixel(info['loc'])
|
82 |
-
proxy_url = 'proxy/' + url
|
83 |
|
84 |
loc_link = f"https://www.google.com/maps/search/{loc}"
|
85 |
ip_link = url
|
|
|
49 |
clean_url = url.replace('proxy/', '')
|
50 |
print('Cleaned URL:', clean_url)
|
51 |
|
52 |
+
req = requests.get(f'{clean_url}', headers=headers, stream=True)
|
53 |
|
54 |
content_type = req.headers['content-type']
|
55 |
|
|
|
79 |
time = dt.datetime.now(timezone)
|
80 |
loc = info['loc']
|
81 |
X, Y = latlon_to_pixel(info['loc'])
|
82 |
+
proxy_url = 'proxy/' + url
|
83 |
|
84 |
loc_link = f"https://www.google.com/maps/search/{loc}"
|
85 |
ip_link = url
|