Skip to content

Instantly share code, notes, and snippets.

@markuskreitzer
Created February 21, 2014 15:46
Show Gist options
  • Save markuskreitzer/9136642 to your computer and use it in GitHub Desktop.
Save markuskreitzer/9136642 to your computer and use it in GitHub Desktop.
Get my Pebble order status!
#!/usr/bin/env python
import urllib2
from BeautifulSoup import BeautifulSoup
url = 'https://getpebble.com/orders/XXXXXXXXXXXXXXXXXXXXXXX'
request = urllib2.Request(url)
result = urllib2.urlopen(request)
t = result.read()
bs = BeautifulSoup(t)
print bs.find("span",{"class": "order-status"}).getText()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment