Skip to content

Instantly share code, notes, and snippets.

@datahutrepo
Created September 7, 2016 06:16
Show Gist options
  • Select an option

  • Save datahutrepo/c04354bf42bdb97698c2b8aef40fea91 to your computer and use it in GitHub Desktop.

Select an option

Save datahutrepo/c04354bf42bdb97698c2b8aef40fea91 to your computer and use it in GitHub Desktop.
In [21]: page = requests.get('http://www.cnn.com')
In [22]: html_content = html.fromstring(page.content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment