Skip to content

SeNaP/reaxar

Repository files navigation

Reaxar

Reaxar is a lightweight asynchronous HTTP client and HTML scraper for Ruby, designed for efficient and concurrent web requests with built-in HTML parsing.

Features

  • Asynchronous HTTP requests using async
  • Simple HTML page parsing and traversal
  • Middleware support for logging, redirects, and more
  • Cookie management
  • Configurable and extensible architecture

Installation

Add this to your Gemfile:

gem 'reaxar'

Then run:

bundle install

Or install the gem manually:

gem install reaxar

Dependencies

  • async-http — Asynchronous HTTP client library
  • async — Asynchronous I/O library for Ruby

Usage

require 'reaxar'

Reaxar::Page.open('https://github.com') do |page|
  puts page.title
end

Development

To run tests:

bundle exec rspec

To run lint checks with RuboCop:

bundle exec rubocop

To generate documentation with YARD:

bundle exec rake yard

Contributing

Bug reports and pull requests are welcome. Please fork the repo and submit a pull request.

License

MIT License

About

Asynchronous Simple HTTP browser

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages