Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1048535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:28:20+00:00 2026-05-16T16:28:20+00:00

How do I get the page data of an other website somewhere on the

  • 0

How do I get the page data of an other website somewhere on the web with ruby on rails?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:28:20+00:00Added an answer on May 16, 2026 at 4:28 pm

    You can use httparty to just get the data

    Sample code (from example):

    require File.join(dir, 'httparty')
    require 'pp'
    
    class Google
      include HTTParty
      format :html
    end
    
    # google.com redirects to www.google.com so this is live test for redirection
    pp Google.get('http://google.com')
    
    puts '', '*'*70, ''
    
    # check that ssl is requesting right
    pp Google.get('https://www.google.com')
    

    Nokogiri really excels at parsing that data.. Here’s some example code from the Railscast:

    url = "http://www.walmart.com/search/search-ng.do?search_constraint=0&ic=48_0&search_query=batman&Find.x=0&Find.y=0&Find=Find"
    doc = Nokogiri::HTML(open(url))
    puts doc.at_css("title").text
    doc.css(".item").each do |item|
      title = item.at_css(".prodLink").text
      price = item.at_css(".PriceCompare .BodyS, .PriceXLBold").text[/\$[0-9\.]+/]
      puts "#{title} - #{price}"
      puts item.at_css(".prodLink")[:href]
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this simple code to load data from other php page using get
I want to create a html page that get data from a website table
When looking to get data from a web page whats the recommended method if
I have tried following queries to get my facebook fan page insights data SELECT
I found that PageProxy can be used to get data from page, but I
While trying to validate form data on my page i get the following error:
I`m trying to send simple html page with form data to user with GET,
There's a strange requirement where I need to get server side data on page
I would like to get POST data sent to page controller in init() function
I need to get information on loaded data percentage when UIWebView loads page. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.