ruby - Is there a simple way to have Mechanize get all the components of a webpage? -


it's understanding when do:

agent = mechanize.new page = agent.get("http://www.stackoverflow.com/") 

mechanize make http get request text/html. when navigate webpage such stackoverflow.com in full web browser (like chrome/firefox) browser reads in html page , makes subsequent get requests associated css, images, javascript, etc.

i can imagine parsing initial html returned mechanize , identifying css, images, etc., , making subsequent requests, there easier way of having mechanize automatically grab all, or specified group, perhaps images of associated components of web page?

i take @ mechanize::pluggableparsers available. 1 of them want.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -