Answer the question
In order to leave comments, you need to log in
How to pull the content of an article from a link?
There is an application on RoR. It is necessary to arrange the pulling of the content of the article (Title, pictures, text, formatting, links). In contact, something very similar can be observed. When the content of the site page in VK opens in a new window. Please tell me what it's called, what queries to look for and if there is a ready-made solution for the rail of such a feature? thank!
Answer the question
In order to leave comments, you need to log in
gem nokogiri
require 'nokogiri'
require 'open-uri'
# Fetch and parse HTML document
doc = Nokogiri::HTML(open(' www.nokogiri.org/tutorials/installing_nokogiri.html '))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question