object is not callable

204 views
Skip to first unread message

yamacom

unread,
Oct 16, 2009, 11:03:58 AM10/16/09
to beautifulsoup
Dear all
im trying to use BeautifulSoup
however it seems to be unable to use it

here I have
>>> import urllib2
>>> import BeautifulSoup
>>> c=urllib2.urlopen('http://kiwitobes.com/wiki/Programming_language.html')
>>> soup=BeautifulSoup(c.read())

but there is an error message
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
soup=BeautifulSoup(c.read())
TypeError: 'module' object is not callable

please help me to solve this problem
thank you very much

--
=======================================================================
Ritsumeikan University, Asia JinZai Project
Master of Information Science
Nguyen Xuan Son

Add : Japan, Shiga-Ken, Kusatsu-Shi, Kasayama 3choume 1-18
ShiteiHaimu Rien, Room 103
Tel/Fax : 81-(0)90-3976 2246
Email : nr00...@ed.ritsumei.ac.jp
Mobile : 81-(0)90-3976 2246 URL : http://www.ritsumei.jp
=======================================================================

sste...@gmail.com

unread,
Oct 16, 2009, 8:14:52 PM10/16/09
to beauti...@googlegroups.com

On Oct 16, 2009, at 11:03 AM, yamacom wrote:

>
> Dear all
> im trying to use BeautifulSoup
> however it seems to be unable to use it
>
> here I have
>>>> import urllib2
>>>> import BeautifulSoup
>>>> c=urllib2.urlopen('http://kiwitobes.com/wiki/
>>>> Programming_language.html')
>>>> soup=BeautifulSoup(c.read())
>
> but there is an error message
> Traceback (most recent call last):
> File "<pyshell#3>", line 1, in <module>
> soup=BeautifulSoup(c.read())
> TypeError: 'module' object is not callable
>
> please help me to solve this problem

from BeautifulSoup import BeautifulSoup

S

Aaron DeVore

unread,
Apr 3, 2013, 5:40:28 PM4/3/13
to beauti...@googlegroups.com
See ssteinerX's answer.
-Aaron DeVore


On Wed, Apr 3, 2013 at 1:41 AM, Mohd. Vaqas Azeem <mohd....@gmail.com> wrote:

Bro i m getting same error as ur if u find any thing related to dis plzz update me..I will be highly oblige for ur kindness..
--
You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beautifulsou...@googlegroups.com.
To post to this group, send email to beauti...@googlegroups.com.
Visit this group at http://groups.google.com/group/beautifulsoup?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages