Kent Johnson writes:
> [EMAIL PROTECTED] wrote:
>> anchor.findNext('code') fails:
>>
>> anchor = soup.fetch('a', {'href': '/wiki/List_of_country_calling_codes'})
>> print anchor
>>
>> [Calling code]
>>
>> anchor.findNext('code')
>> []
>
> are you sure that's what you got? Looks like a
[EMAIL PROTECTED] wrote:
> anchor.findNext('code') fails:
>
> anchor = soup.fetch('a', {'href': '/wiki/List_of_country_calling_codes'})
> print anchor
>
> [Calling code]
>
> anchor.findNext('code')
> []
are you sure that's what you got? Looks like an AttributeError to me -
anchor is a *li
[EMAIL PROTECTED] writes:
>>jonasmg at softhome.net wrote:
>>> Hi!
>>>
>>> I'm trying to use BeautifulSoup for get data from a table (on right) from:
>>> http://en.wikipedia.org/wiki/United_states
>>>
>>> i.e. i would get data from 'Calling code' that it would be '+1'
>>>
>>>
>jonasmg at softhome.net wrote:
>> Hi!
>>
>> I'm trying to use BeautifulSoup for get data from a table (on right) from:
>> http://en.wikipedia.org/wiki/United_states
>>
>> i.e. i would get data from 'Calling code' that it would be '+1'
>>
>> --
>>
>> import urll
[EMAIL PROTECTED] wrote:
> Hi!
>
> I'm trying to use BeautifulSoup for get data from a table (on right) from:
> http://en.wikipedia.org/wiki/United_states
>
> i.e. i would get data from 'Calling code' that it would be '+1'
>
> --
>
> import urllib2
> from BeautifulSoup
Hi!
I'm trying to use BeautifulSoup for get data from a table (on right) from:
http://en.wikipedia.org/wiki/United_states
i.e. i would get data from 'Calling code' that it would be '+1'
--
import urllib2
from BeautifulSoup import BeautifulSoup
url="http://en.wikipedia