web.input.url

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 7

Example 1

Project: tldextract Source File: handlers.py
Function: get
    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'