3 ms·
Indeed, I wrote a tool[0] to make it easy to grab a page and run xpath queries on it. It’s really surprising how much mileage I’ve gotten out of it. Probably 95
by charlesdaniels 6y ago
Indeed, I wrote a tool[0] to make it easy to grab a page and run xpath queries on it. It’s really surprising how much mileage I’ve gotten out of it. Probably 95% of my web scraping needs can be solved withal xpath query or two. And if you realize you need selenium later, xpath is well supported there, so porting your existing query is usually quite straightforward.
0 - https://git.sr.ht/~charles/charles-util/tree/dev/bin/query-webpage https://git.sr.ht/~charles/charles-util/tree/dev/bin/query-w...