Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No links with Nokogiri #1

Closed
slayer opened this issue May 22, 2009 · 2 comments
Closed

No links with Nokogiri #1

slayer opened this issue May 22, 2009 · 2 comments

Comments

@slayer
Copy link

slayer commented May 22, 2009

ver 0.9.2

>> agent = WWW::Mechanize.new
>> agent.get("http://lenta.ru/").links.size
=> 4
>> require 'hpricot'
=> []
>> WWW::Mechanize.html_parser = Hpricot
=> Hpricot
>> agent.get("http://lenta.ru/").links.size
=> 550
@tenderlove
Copy link
Member

I believe this is fixed if you upgrade libxml2 with nokogiri. I get 554 links when I run the code using Nokogiri 1.3.0 and libxml2 2.7.3

@slayer
Copy link
Author

slayer commented Jun 9, 2009

i install libxml2 from debian/testing but without success:

root@tech ~ # dpkg -l libxml*|tail -n 4
ii  libxml2                         2.7.3.dfsg-1               GNOME XML library
ii  libxml2-dev                     2.7.3.dfsg-1               Development files for the GNOME XML library
ii  libxml2-utils                   2.7.3.dfsg-1               XML utilities
un  libxmlrpc-ruby1.8                                    (no description available)

root@tech ~ # gem list |grep nokogiri
nokogiri (1.3.1)

>> WWW::Mechanize.new.get("http://lenta.ru/").links.size
=> 5

root@tech ~ # /opt/ruby-ee/bin/nokogiri -v
---
nokogiri: 1.3.1
warnings: []

libxml:
  compiled: 2.7.3
  loaded: 2.7.3
  binding: extension

leejarvis pushed a commit that referenced this issue Jan 31, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants