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::pluggableparser
s available. 1 of them want.
Comments
Post a Comment