From anonymous, 4 Years ago, written in Python.
This paste is a reply to Untitled from anonymous
- view diff
Embed
  1. import requests
  2. import lxml.html
  3.  
  4. page = requests.get('http://kthxbye.ch/gopfertammi/')
  5. page.encoding = 'utf-8'
  6. tree = lxml.html.fromstring(page.text)
  7. content = tree.find('body').text_content().strip()
  8. print(content.replace('\n', ' '))