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 installOr install the gem manually:
gem install reaxarDependencies
- 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
endDevelopment
To run tests:
bundle exec rspecTo run lint checks with RuboCop:
bundle exec rubocopTo generate documentation with YARD:
bundle exec rake yardContributing
Bug reports and pull requests are welcome. Please fork the repo and submit a pull request.
License
MIT License