Get current URL in Python
Posted
by Alex
on Stack Overflow
See other posts from Stack Overflow
or by Alex
Published on 2010-05-04T10:47:42Z
Indexed on
2010/05/04
11:18 UTC
Read the original article
Hit count: 126
python
|google-app-engine
How would i get the current URL with Python,
I need to grab the current URL so i can check it for query strings e.g
requested_url = "URL_HERE"
url = urlparse(requested_url)
if url[4]:
params = dict([part.split('=') for part in url[4].split('&')])
also this is running in Google App Engine
© Stack Overflow or respective owner