Just out of curiosity, I am trying to see if it is possible to use jQuery to read a HTML file so that I can use it to output some values of some html elements? I am looking for some functionality like what Firebug provides i.e. Firebug lets me use the $()
on any webpage so what I am trying to achieve is:
- I have a bunch of HTML files
- I need to load each one of them and using jQuery, I want to extract some information pertaining to some HTML elements
So maybe use Python to load each file and then use jQuery to parse the HTML somehow. I don't know the right terminology to use to describe this requirement but any suggestions? Maybe I am looking for a command line jQuery execution engine?
EDIT:
Or maybe I'm looking for a scripting language that provides the $()
functionality. I looked at Beautiful Soup but I'm still curious about jQuery like functionality.