Skip to content

Instantly share code, notes, and snippets.

@cabrinha
Created December 17, 2015 18:56
Show Gist options
  • Save cabrinha/3101aa94a73d8d8ec8b9 to your computer and use it in GitHub Desktop.
Save cabrinha/3101aa94a73d8d8ec8b9 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import requests
from lxml import html
url = requests.get('https://uk.groups.yahoo.com/neo/groups/HeimdagsLibrary/conversations/topics/1')
tree = html.fromstring(url.content)
authors = tree.xpath('//div[@class="author fleft fw-600"]/text()')
summary = tree.xpath('//div[@class="summary"]/text()')
print(authors)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment