Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

How to access a webpage and get its content

Rails • Asked by Kelvin Firmino

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.

Hey Kelvin,

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

Check out:

Have a look at the Nokogiri gem

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 31,353+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.