Spaces:
Running
Running
Commit
·
c6f268b
1
Parent(s):
1c650e9
Update main.py
Browse files
main.py
CHANGED
@@ -32,7 +32,10 @@ def latlon_to_pixel(loc):
|
|
32 |
|
33 |
@app.route('/proxy/<path:url>')
|
34 |
def proxy(url):
|
35 |
-
|
|
|
|
|
|
|
36 |
headers = {'User-Agent': 'Mozilla/5.0'}
|
37 |
try:
|
38 |
req = requests.get(f'http://{url}', headers=headers, stream=True, timeout=15)
|
|
|
32 |
|
33 |
@app.route('/proxy/<path:url>')
|
34 |
def proxy(url):
|
35 |
+
|
36 |
+
timestamp = request.args.get('t', None) # New line
|
37 |
+
print('URL:', url, 'Timestamp:', timestamp) # Updated line
|
38 |
+
|
39 |
headers = {'User-Agent': 'Mozilla/5.0'}
|
40 |
try:
|
41 |
req = requests.get(f'http://{url}', headers=headers, stream=True, timeout=15)
|