[Tutor] trouble with beautiful soup

marcus lütolf marcus.luetolf at bluewin.ch
Thu Dec 24 12:21:37 EST 2015


dear pythonistas,
for hours I'am traying to use Beautiful Soup for scraping some websites as an exercise.
But each time I run the code below:

>>> import urllib
>>> from BeautifulSpoup import *

>>> url =  raw_input( 'Enter -')
                  
>>> html = urllib.urlopen(url).read()

>>> soup = BeautifulSoup(html)
>>> print soup

I am getting the following trace back without beeing prompted for an input:

Traceback (most recent call last):
  File "C:/Python27/Beautiful Soup_ex1.py", line 2, in <module>
    from beautifulspoup import *
ImportError: No module named beautifulspoup

I have installed and unzipped etc. the latest file from www.crummy.com many times. 
If I click setup.py the command window appears only a fraction of a second.
??????

Happy holidays and thanks for help, Marcus.





---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus



More information about the Tutor mailing list