Sha256: 90efa71644fc042673dad18fb123353d7ab11fc6d18598b36f54230e1aac3f91
Contents?: true
Size: 438 Bytes
Versions: 2
Compression:
Stored size: 438 Bytes
Contents
module MercuryWebParser module API module Content # 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] def parse(url) response = get('', url: url) MercuryWebParser::Article.new(response) end end # Content end # API end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mercury_web_parser-0.1.2 | lib/mercury_web_parser/api/content.rb |
mercury_web_parser-0.1.0 | lib/mercury_web_parser/api/content.rb |