Skip to content

Instantly share code, notes, and snippets.

@TannerFilip
Created June 30, 2011 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TannerFilip/1057493 to your computer and use it in GitHub Desktop.
Save TannerFilip/1057493 to your computer and use it in GitHub Desktop.
# fetch page text
self.text = self.response.read()
if unicodify:
self.text = self.Decode(self.text)
f = open('/home/tanner/Downloads/stewbot/stewbot/components/sitematrix.xml', 'r')
self.text = f.read()
# parse page text
if not parse_as:
self.parsed = None
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment