You wouldn't do it at the Nokogiri level. You need to read up on the open-uri 
library, there are all sorts of goodies in there to manage authentication, 
sessions, everything needed to create a Web client. That layer of your 
application will get the text stream that you will send on to Nokogiri. There's 
nothing in Noko that is specific to solving that problem, it starts from the 
assumption that you have a text file locally or a stream from another client 
like open-uri.

Walter

On Dec 6, 2011, at 10:21 AM, JavierQQ wrote:

> Hi,
> It's me again, I was doing some easy example and it worked... but now
> I've got some trouble
> Is there a way to provide nokogiri data such as username and password?
> because in a web I have to login first
> Scrapy gives a way to simulate user login, and I was wonderin if
> nokogiri can do the same
> 
> Javier
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to