This little ruby script takes a list of URLs, searches a paricular element for a particular word and returns CSV output with each URL and the number of instances of that word. Here's how to use it.
First, create a CSV file containing URLs. That just means you put each URL on its own line.
Next you run the script using Ruby, passing three arguments
ruby get-list.rb list.csv div.my-div word
Now let's break down those arguments. First you provide the path to the list of URLs. Next you provide the element you want to search. Last you provide the word you are searching for.
When creating a report just send the output of the script into a CSV file like so.
ruby get-list.rb list.csv div.my-div word > report.csv