Skip to content

Instantly share code, notes, and snippets.

View tocttou's full-sized avatar
🌴

Ashish Chaudhary tocttou

🌴
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tocttou on github.
  • I am ashishchaudhary (https://keybase.io/ashishchaudhary) on keybase.
  • I have a public key whose fingerprint is 1157 D03C D9C1 F7A8 E7C4 78C3 A175 E58F B0B0 5CDF

To claim this, I am signing this object:

import requests
from lxml.html import fromstring
from bottle import get, run, response, request
@get('/')
def title_parser():
response.content_type = 'application/json'
url = request.query['string']
r = requests.get(url)
tree = fromstring(r.content)
{
"challenge_name": "pytest",
"public": [
{
"public_dir": "./public",
"public_setup": [
{
"script": "public_bash.sh",
"sudo": "yes"
}