During the last year, # ... # ... out our sidebar for other learning resources.
# Readability [![Build Status](https://travis-ci.org/keepcosmos/readability.svg?branch=master)](https://travis-ci.org/keepcosmos/readability) [![Readability version](https://img.shields.io/hexpm/v/readability.svg)](https://hex.pm/packages/readability) Readability is a tool for extracting and curating the primary readable content of a webpage. Check out The [Documentation](https://hexdocs.pm/readability/Readability.html) for full and detailed guides ## Installation If [available in Hex](https://hex.pm/docs/publish), the package can be installed as: 1. Add readability to your list of dependencies in `mix.exs`: ```elixir def deps do [{:readability, "~> 0.3"}] end ``` 2. Ensure readability is started before your application: ```elixir def application do [applications: [:readability]] end ``` ## Usage To parse document, you must prepare html string. The example below, `html` variable is the html source from [Elixir Design Goals](http://elixir-lang.org/blog/2013/08/08/elixir-design-goals/) ### Examples ```elixir ### Extract the title Readability.title(html) #=> Elixir Design Goals ### Extract the content with transformed html. html |> Readability.article |> Readability.raw_html #=> #
During the last year, # ... # ... out our sidebar for other learning resources.