|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hello,
For the following piece of code: #! /usr/bin/ruby require 'open-uri' require 'rexml/document' require 'rexml/xpath' doc1 = open("http://www.cricinfo.com/rss/livescores.xml") puts doc1.class doc2 = open("http://ws.audioscrobbler.com/1.0/artist/Autechre/toptags.xml") puts doc2.class I get the following output: moonwolf@trantor:~/ruby/lastfm$ ./scrape.rb StringIO Tempfile The question I have is why openuri treats two similar entities as two different classes? Thank you, Jayanth |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On May 26, 2008, at 11:38 PM, Srijayanth Sridhar wrote: > > moonwolf@trantor:~/ruby/lastfm$ ./scrape.rb > StringIO > Tempfile > > The question I have is why openuri treats two similar entities as two > different classes? How big is the second one? |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
>>
>> The question I have is why openuri treats two similar entities as two >> different classes? > > > How big is the second one? > > > > Large. Thanks. That was it. Jayanth |
|
![]() |
| Outils de la discussion | |
|
|