module MercuryWebParser::API::Content
Public Instance Methods
parse(url)
click to toggle source
Parse a webpage and return its main content Returns a MercuryWebParser::Article
object
@param url [String] The URL of an article to return the content for @return [MercuryWebParser::Article]
# File lib/mercury_web_parser/api/content.rb, line 9 def parse(url) response = get('', url: url) MercuryWebParser::Article.new(response) end