dear pythonistas, Jos, Alex, Danny, Francois and Rodney I am absolutely thrilled about your prompt responses to my problem on this Christmas' eve and I am somewhat ashamed by my typing error. However, neither the correct typing of beautifulsoup nor the replacment of the 2nd line of my code by <from bs4 import beautiful soup> relieved the trace back mentioned in my previous mail. ???? Bless you, Marcus.
-----Ursprüngliche Nachricht----- Von: Jos Kerc [mailto:josk...@gmail.com] Gesendet: Donnerstag, 24. Dezember 2015 19:50 An: marcus lütolf <marcus.luet...@bluewin.ch> Cc: tutor@python.org Betreff: Re: [Tutor] trouble with beautiful soup Hi, see below. On Thu, Dec 24, 2015 at 6:21 PM, marcus lütolf <marcus.luet...@bluewin.ch> wrote: > 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 Change beautifulspoup to beautifulsoup It's just a typo... > > 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. > HTH & nice holidays too! > > > > > --- > Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. > https://www.avast.com/antivirus > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor