Popularity
3.1
Declining
Activity
0.6
Declining
7
3
1
Programming language: Crystal
License: MIT License
Tags:
Misc
hq.cr alternatives and similar shards
Based on the "Misc" category.
Alternatively, view hq.cr alternatives based on common mentions on social networks and blogs.
-
sentry
Build/Runs your crystal application, watches files, and rebuilds/restarts app on file changes -
immutable
Thread-safe, persistent, immutable collections for the Crystal language -
crystal-web-framework-stars
⭐️ Web frameworks for Crystal, most starred on Github -
cron_scheduler
Simple job scheduler with crontab patterns for Crystal Language. -
inflector.cr
Inflector shard for Crystal. A port of ActiveSupport::Inflector -
aasm.cr
:arrows_clockwise: Easy to use finite state machine for Crystal classes -
kreal
Kreal is a model sharing & RPC library built on and works with Kemal seamlessly. -
ulid
Universally Unique Lexicographically Sortable Identifier (ULID) in Crystal -
CrSerializer
Extensible annotation based serialization/deserialization library -
circuit_breaker
Implementation of the circuit breaker pattern in crystal -
burocracia.cr
No dependency Crystal shard to validate, generate and format Brazilian burocracias such as CPF, CNPJ and CEP -
wikicr
Wiki in crystal, using Markdown and Git, inspired by dokuwiki. Last features to build are pretty hard, if you have some time to help... :) -
m3u8
Generate and parse m3u8 playlists for HTTP Live Streaming (HLS) in Crystal. -
message_verifier.cr
Rails compatible MessageVerifier for Crystal-lang apps
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
Promo
www.sonarqube.org
Do you think we are missing an alternative of hq.cr or a related project?
README
hq.cr 
a simple wrapper for crystal-xml and myhtml
- gateway pattern : suppress errors until values are referenced
- handy accessors : provide useful extractors and conversions
Installation
- crystal: 0.23.x
Add this to your application's shard.yml
:
dependencies:
hq:
github: maiha/hq.cr
version: 0.2.3
xpath
require "hq"
node = Hq.parse("<html><body><div>82 users</div></body></html>")
node.xpath("/html/body/div").text # => "82 users"
node.xpath("/html/body/div").int # => 82
node.xpath("/html/body/nav").int? # => nil
node.xpath("/html/body").path # => "/html/body"
node.xpath("/html/div").text # raise Hq::NotFound.new(key: "/html/div")
css
- css selector
nodes = Hq::Css.parse <<-EOF
<ul>
<li>foo</li>
<li>bar</li>
</ul>
EOF
nodes.css("li").map(&.text) # => ["foo", "bar"]
- node attributes
nodes = Hq::Css.parse <<-EOF
<a href="https://github.com/crystal-lang/crystal" class="official">crystal</a>
<a href="https://github.com/maiha/hq.cr">hq.cr</a>
EOF
nodes.css("a").each do |a|
p [a["href"], a["class"]?]
end
# => ["https://github.com/crystal-lang/crystal", "official"]
# => ["https://github.com/maiha/hq.cr", nil]
Roadmap
0.2.0
- [x] support
css(tag)
0.3.0
- [ ] support
css(tag_with_class)
- [x] support
Css::Node#attributes
0.4.0
- [ ] support
Hq.mapping
likejq.cr
Contributing
- Fork it ( https://github.com/maiha/hq.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- maiha maiha - creator, maintainer