Ask A Question

Notifications

You’re not receiving notifications from this thread.

How to access a webpage and get its content

Kelvin Firmino asked in Rails

Hi, good afternoon.

Chirs, I would like to access a website and get its content from its page to create a database with this information.

It is about a game so, it is a common information that I would like to do website about in a better way. So, instead of copy by hand the content, I would like to do this in a more efeccienty way, accessing its multiple pages and catch the data that I need.

Do you know a way that I can do that?

Thanks in advance for your help.

Reply

Hey Kelvin,

I've never done it, but the keyword you're looking for is "web scraping"

Check out: https://www.google.com/search?q=web+scraping

Reply

Have a look at the Nokogiri gem

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.