import requests
import lxml.html
dom = lxml.html.fromstring(requests.get('https://news.ycombinator.com/item?id=7254884').content)
[x for x in dom.xpath('//a/@href') if '//' in x and 'ycombinator.com' not in x]