From anonymous, 4 Years ago, written in Python.
This paste is a reply to starbucks from The Compiler
- go back
Embed
Viewing differences between starbucks and Re: starbucks
#!/usr/bin/python3
# vim: set fileencoding=utf-8 ts=4 sts=4 sw=4 tw=80 expandtab :

import requests
import lxml.html
import subprocess
import sys

if sys.argv[2] != up:
    sys.exit(0)

essid = subprocess.check_output(["iwgetid", "--raw"]).decode('UTF-8').rstrip('\n')

rstrip('n')

if essid != 'Starbucks':
    sys.exit(0)

url1 = "http://www.mpp.tpn.ch/starbucks.php?net=SBCH"
doc = lxml.html.parse(url1).getroot()
form = doc.get_element_by_id('frmConnect')
newurl = form.action
data = form.fields
requests.post(newurl, data)

Replies to Re: starbucks rss

Title Name Language When
Re: Re: starbucks anonymous python 4 Years ago.