Reaxar is a lightweight asynchronous HTTP client and HTML scraper for Ruby, designed for efficient and concurrent web requests with built-in HTML parsing.
- Asynchronous HTTP requests using
async - Simple HTML page parsing and traversal
- Middleware support for logging, redirects, and more
- Cookie management
- Configurable and extensible architecture
Add this to your Gemfile:
gem 'reaxar'Then run:
bundle installOr install the gem manually:
gem install reaxar- async-http — Asynchronous HTTP client library
- async — Asynchronous I/O library for Ruby
require 'reaxar'
Reaxar::Page.open('https://github.com') do |page|
puts page.title
endTo run tests:
bundle exec rspecTo run lint checks with RuboCop:
bundle exec rubocopTo generate documentation with YARD:
bundle exec rake yardBug reports and pull requests are welcome. Please fork the repo and submit a pull request.
MIT License