# 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.4"}] end ``` 2. Ensure readability is started before your application: ```elixir def application do [applications: [:readability]] end ``` ## Usage ### Examples ```elixir ### Get example page. %{status_code: 200, body: html} = HTTPoison.get!("https://medium.com/@kenmazaika/why-im-betting-on-elixir-7c8f847b58") ### Extract the title. Readability.title(html) #=> "Why I’m betting on Elixir" ### Extract authors. Readability.authors(html) #=> ["Ken Mazaika"] ### Extract the primary content with transformed html. html |> Readability.article |> Readability.readable_html #=> #
Background: I’ve spent... # ... # ...button!