3 ms·
Simple python scraper for all the links: import requests import lxml.html dom = lxml.html.fromstring(requests.get('https://news.ycombinator.com/item?id=72548
by GamblersFallacy 13y ago
Simple python scraper for all the links:
import requests
import lxml.html
dom = lxml.html.fromstring(requests.get('https://news.ycombinator.com/item?id=7254884' 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]