Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

descriptor_crash.py 358B

1234567891011121314151617181920
  1. # -*- coding: iso-8859-1 -*-
  2. import urllib
  3. class Page(object):
  4. _urlOpen = staticmethod(urllib.urlopen)
  5. def getPage(self, url):
  6. handle = self._urlOpen(url)
  7. data = handle.read()
  8. handle.close()
  9. return data
  10. #_getPage
  11. #Page
  12. if __name__ == "__main__":
  13. import sys
  14. p = Page()
  15. print p.getPage(sys.argv[1])