Home>

I want to save the DOM obtained with active storage in S3 and analyze it with mechanize.
Locally, the DOM is stored instorageand I'm trying to get it and parse it,
agent = Mechanize.new
page = agent.get (instance.dom)
I am worried about what to do because I can only pass the URL to the argument of get () even if I write.

What should I do if I want to analyze the DOM stored in storage with mechanize?

  • Answer # 1

      

    I want to save the DOM obtained with active storage in S3 and analyze it with mechanize.

    In the first place, I think that the feature of Mechanize isdynamically following pages.

    Nokogiri or REXML is enough if you just want to parse the stored static data as DOM.