Zenrows

ZenRows is an Elixir client library for interacting with the ZenRows API. It provides a simple and convenient way to send HTTP requests to the ZenRows API, allowing you to scrape web pages and extract data easily.

View the documentation.

Installation

Add zenrows to your list of dependencies in mix.exs:

def deps do
  [
    {:zenrows, "~> 0.1"}
  ]
end

Then run mix deps.get to install the dependency.

Configuration

Configure the zenrows library by adding the following to your config.exs file:

config :zenrows,
  api_key: "YOUR_API_KEY",
  retries: 3,
  timeout: 30_000

Usage

Making GET requests

ZenRows.get("https://example.com", headers: %{"Authorization" => "Bearer token"}, config: %ZenRows.Config{js_render: true})

Making POST requests

ZenRows.post("https://example.com", data: %{key: "value"}, headers: %{"Authorization" => "Bearer token"})

Request Options

For more information on the available configuration options, refer to the ZenRows.Configdocumentation.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

License

ZenRows is released under the MIT License. See the LICENSE file for more information.