Here are the examples of the python api web.input.url taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Example 1
def GET(self): # pylint: disable=invalid-name,no-self-use
url = web.input(url='').url
if not url:
return web.webapi.badrequest()
ext = tldextract.extract(url)._asdict()
web.header('Content-Type', 'application/json')
return json.dumps(ext) + '\n'