Nokogiri
Bundler
Our great sponsors
Nokogiri | Bundler | |
---|---|---|
20 | 4 | |
6,100 | 4,822 | |
0.1% | - | |
9.5 | 7.6 | |
3 days ago | about 4 years ago | |
C | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Nokogiri
- Web Scraping in Python – The Complete Guide
-
Did you know Nokogiri now has opt-in HTML5 parsing?
release planning: v1.16.0 · Issue #2897 · sparklemotion/nokogiri
-
As a Go developer, I’m surprised Crystal isn’t more popular
What's holding me back from going all in with Crystal is I have a lot of pre-existing Ruby code, and porting Ruby code to Crystal can be tricky. For example, Crystal lacks an Enumerator class (aka generators) due to captured block semantics. I also wish the shards ecosystem was a little more mature; for example there's multiple HTML parsing libraries, but none have all of the features that Ruby's Nokogiri has. For new greenfield backend projects, I would totally use Crystal.
-
Two months into learning Ruby, it is the most beautiful language I ever learned
Welcome! Ruby isn't exactly "dying", but the hype/popularity is definitely fading. This is primarily because Ruby is no longer "new", most of Ruby's popularity came from Rails, and now Rails is no longer the "new hotness". However, Ruby still has lots of awesome features and lots of awesome other libraries and frameworks, such as the new fancy irb gem that uses reline, nokogiri, chunky_png, the async gems, Dragon Ruby, SciRuby, Ronin, and the new Hanami web framework.
- What should I be learning?
- Comparable maintained Kimurai alternative?
-
In "Your Name" (2016), Mitsuha and Tesshi are seen turning a tree into their makeshift café, which is why one of the trees in the town is later missing
great for hacking at xml
-
Ditch Your Version Manager
Mike has worked hard over the years to have Nokogiri come with its dependencies. It does come with libxml and all that is required.
From https://nokogiri.org
> These dependencies are met by default by Nokogiri's packaged versions of the libxml2 and libxslt source code, but a configuration option --use-system-libraries is provided to allow specification of alternative library locations.
Some authors work hard to have their tools do the right thing and consistently.
-
Web scraping with rails
If the page is rendered as html you can use Nokogiri. It has great support and is pretty easy to get started with too.
-
Nokogiri 1.12 supports HTML5 parsing (after assimilating Nokogumbo)
And even now, pulling in a Java-based HTML5 parser is still probably easier than re-implementing in FFI, which is why I created https://github.com/sparklemotion/nokogiri/issues/2227 and would love to have this the conversation there if possible.
Bundler
-
current state of bundle install vs gem install -g
bundle install uses the bundle binary (technically a ruby script). The command runs the Bundler::Installer.run module. There are a lot more steps, particularly around dependencies. It ultimately calls Bundler::Installer::GemInstaller.
-
My tone doesn’t make me wrong, or how I convinced the Ruby project to fix an inconsistency
sudo is totally unacceptable on my system
-
RubyGems has the most legal problems. Explanation?
On the license in 2011: Bundler, which most people use to generate gem scaffolding, added the MIT license as default in 2011. I bet you'll see a change around that time where older gems are more likely to have a different license (Apache 2.0 maybe?) and newer gems are more often MIT. I'd also guess older gems are more likely to be indirect dependencies since they're probably (?) more likely to implement lower level pieces which were since wrapped up, so this could explain that phenomenon too.
-
Caching All Native Ruby Gem Platforms
If you are using Bundler version 1.x, you may also need to set the specific_platform configuration setting.
What are some alternatives?
Oga - Oga is an XML/HTML parser written in Ruby.
RubyGems - The Ruby community's gem hosting service.
Ox - Ruby Optimized XML Parser
Gem in a Box - Really simple rubygem hosting
HTML::Pipeline - HTML processing filters and utilities
gemdiff - Find source repositories for ruby gems. Open, compare, and update outdated gem versions
Oj - Optimized JSON
gemstash - A RubyGems.org cache and private gem server
ROXML - ROXML is a module for binding Ruby classes to XML. It supports custom mapping and bidirectional marshalling between Ruby and XML using annotation-style class methods, via Nokogiri or LibXML.
rubygems - Library packaging and distribution for Ruby.
HappyMapper - Object to XML mapping library, using Nokogiri (Fork from John Nunemaker's Happymapper)
sport.db - sport.db - open sports database (e.g. football.db, formula1.db etc.) command line tool and libraries