All Versions
9
Latest Version
Avg Release Cycle
108 days
Latest Release
1833 days ago

Changelog History

  • v0.4.0-alpha Changes

    April 18, 2019

    ๐Ÿ†• News

  • v0.3.5 Changes

    April 12, 2019

    ๐Ÿ†• News:

    • โž• Add possibilty to follow redirect link #11 (thanks to @giuseongit )
  • v0.3.4 Changes

    November 28, 2018
    • ๐Ÿ‘‰ Make block return #5
  • v0.3.2 Changes

    December 09, 2016

    Correction

    • correct impossibility to found a node who contains a number in its classname
  • v0.3.1 Changes

    December 09, 2016

    Correction

    • correct impossibility to found a node who contains a number in its classname
  • v0.3.0 Changes

    December 09, 2016

    feature

    • โž• Add anew Crystagiri::Tag class who include a XML::Node variable and add more usefull method
    • add a benchmark between Crystagiri & Nokogiri
  • v0.2.1 Changes

    December 09, 2016

    Corrections

    • ๐Ÿ“‡ Rename Crystagiri::HTML.class method as Crystagiri::HTML.where_class.
    • To be more logic, I renamed also Crystagiri::HTML.tag into Crystagiri::HTML.where_tag
    • Correct a bug when user search only a class with Crystagiri::HTML.css
  • v0.2.0 Changes

    December 09, 2016

    new feature

    • Implement css query

      doc.css("#main-content ol.steps") {|node| puts node}# => <ol class="steps"> .. </ol>doc.css("#body>quote.introduction") {|node| puts node}# => <quote class="introduction"> .. </quote>

  • v0.1.0 Changes

    December 09, 2016

    Initial release

    ๐Ÿ“œ In this first version you can only parse Html file represented by Crystagiri::HTML. You can instanciate it from :

    doc = Crystagiri::HTML.new "\<h1\>Crystagiri is awesome!!\</h1\>"doc = Crystagiri::HTML.from\_file "README.md"doc = Crystagiri::HTML.from\_url "http://example.com/"
    

    Then you can search all XML::Node by:

    • HTML tag

      doc.tag("h2") { |node| puts node }# => <h2> .. </h2># => <h2> .. </h2># => <h2> .. </h2>

    • HTML id

      puts doc.at_id("main-content") # => <div id="main-content"> ... </div>

    • HTML class attribute

      doc.class("summary") { |node| puts node }# => <div class="summary"> .. </div># => <div class="summary"> .. </div># => <div class="summary"> .. </div>