Web Scraping With Ruby
Introduction to web scraping with Ruby. How to handle http connections, parse html files for data, best practices, tips and an example project.
To reverse expression in XPath the
not() function can be used which reverses any expression passed to it.
This is useful for creative negative predicates that are vital in many HTML parsing tasks. See this interactive example:
Above, we can use
not() function to filter out special HTML elements like advertisements.