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 join text in XPath the concat()
function can be used. This is useful when parsing HTML for data values that are distributed through multiple elements or attributes.
See this interactive example:
Note that concat()
only works with strings so it'll automatically try convert elements to their text()
values.