nokogiri - Ruby Watir from html instead of URL -
in scenario i'm scraping site content generated javascript. know watir perfect situation, know, tends add little overhead , make program take little longer.
currently able login using nokogiri , sending post request username/password, can imagine fast. after successful login go address content want scrape located, , said before, such content result of javascript processing, nokogiri no point.
what want use watir load html returned nokogiri parses javascript , continue scraping generated html without having use watir start reduce processing time.
is there way load content watir html string gets processed instead of invoking 'goto' method?
the direct answer question no. watir not designed scrape web pages, test web pages. testing web pages means navigating them , interacting them.
additionally, if html parser not solve problem, copying text parser watir wouldn't fix problem either.
Comments
Post a Comment