Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:24
    gencer commented #1961
  • Jan 16 20:41
    gencer commented #1961
  • Jan 16 12:50
    jvshahid commented #1253
  • Jan 15 21:39
    Tomy0498 starred sparklemotion/nokogiri
  • Jan 15 18:28
    gordonbisnor closed #1972
  • Jan 15 18:28
    gordonbisnor commented #1972
  • Jan 15 18:14
    gordonbisnor edited #1972
  • Jan 15 17:54
    gordonbisnor opened #1972
  • Jan 15 16:11
    headius commented #1253
  • Jan 15 15:04
    headius commented #1969
  • Jan 15 14:48
    ashmaroli commented #1966
  • Jan 15 14:46
    flavorjones commented #1969
  • Jan 15 14:35
    kares commented #1836
  • Jan 15 14:17
    flavorjones labeled #1971
  • Jan 15 14:17
    flavorjones opened #1971
  • Jan 15 14:09
    flavorjones commented #1966
  • Jan 15 14:06
    flavorjones commented #1969
  • Jan 15 14:04
    flavorjones commented #1969
  • Jan 15 13:55
    flavorjones labeled #1969
  • Jan 15 13:55
    flavorjones milestoned #1969
Mike Dalessio
@flavorjones
@joaquindiaz01 can you explain a bit more about what you're trying to do?
For what purpose are you using the generated XML document?
Mike Dalessio
@flavorjones
@here v1.10.0.rc1 is up on rubygems
kapilpipaliya
@kapilpipaliya
I have scrolling webpage. when i goes to end of page, it loads more data. how can i parse it with nokogiri?
i want to load all the data in in.
Mike Dalessio
@flavorjones
@kapilpipaliya Answering this question will involve networking and hitting API calls involving several gems; Nokogiri is simply a wrapper for a parsing library. You may want to ask on a more general forum.
kapilpipaliya
@kapilpipaliya
thanks
Mike Dalessio
@flavorjones
@/all ci.nokogiri.org will be unavailable briefly while we upgrade to concourse 5.0.0
Mike Dalessio
@flavorjones
downtime starts now
Mike Dalessio
@flavorjones
there may be brief ci.nokogiri.org outages again today
Mike Dalessio
@flavorjones
@/all nokogiri v1.10.2 is out, see https://nokogiri.org/CHANGELOG.html for details
Mike Dalessio
@flavorjones
ci.nokogiri.org will be going down briefly for a version upgrade to concourse 5.1.0.
Mike Dalessio
@flavorjones
CI is back up
Mike Dalessio
@flavorjones
@/all ci.nokogiri.org will be going down briefly for a version upgrade to concourse v5.2.0
Mike Dalessio
@flavorjones
ci is back up
MSP-Greg
@MSP-Greg
Nokogiri API docs, wiki pages, & tutorials available at https://msp-greg.github.io/nokogiri/. API docs based on master... JFYI
Ian Kottman
@ikottman

Hello everyone. What system dependencies does nokogiri have at runtime? For example, I know it needs libxml2/libxslt to compile native extensions, but do those libraries still need to be available at runtime?

Context: I'm making a bare-bones docker image for running a rails app, and I'm scrutinizing every system dependency to determine if it's really necessary at runtime.

Mike Dalessio
@flavorjones
@ikottman Apologies for my slow response, I've been AFK for a few days. There are a few options here, including static compilation (which should be the default) so you shouldn't need libxml2/libxslt shared libraries hanging around.
@ikottman Maybe we could figure out a time to talk synchronously, either here or on a zoom/hangout about how to approach this?
Ian Kottman
@ikottman
Sure! I'll DM you to setup a time to chat
William Entriken
@fulldecent
Hello room.
This is a simple PR which allows Nokogiri to be used with HTML5 validators. // sparklemotion/nokogiri#1918
Requesting review please.
Mike Dalessio
@flavorjones
@fulldecent ACK. Just commented on the PR and will review ASAP
Qqwy / Wiebe-Marten
@Qqwy
Hi!

When doing the following:

Nokogiri::HTML.fragment("<a href='https://foo.com?a=1&b=2").to_s                                                    
# => "<a href=\"https://foo.com?a=1&amp;b=2\"></a>"

in the output, the ampersand is escaped

Am I doing something wrong here?
(My real use-case is iterating over all a[href]s in the document and altering the URLS)
Nokogiri::HTML("<a href='https://foo.com'>foo</a>").search("//a").each do |n| n.attributes["href"].value = "https://foo.com?q=a&x=y" end.to_s
Qqwy / Wiebe-Marten
@Qqwy
Hmm, I learned something new today!
Turns out that ampersands should always be escaped inside URLs.
I only hope that no double escaping will happen, where &amp; is expanded into &amp;amp; in this example
Shlomi Fish
@shlomif
hi all! The "tutorials" link here is broken - https://nokogiri.org/