dear pythonistas, dear contributors Danny and Walter, I tried all instructions given to my without any success: If I type the install commands in the command line - even after having installed pip - I invariably get the notion that beautifulsoup is not found. If I run the directory C:\Python27\Lib, beautifulsoup is not listed, also not if I look into IDLE Python 27/ Open Module. And without surprise the command
C:\Python27>python Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import BeautifulSoup returns ...no module found. On the other hand I find listed beautifulsoup4-4.4.1 in IDLE Python 27/ Lib and pip in IDLE Python 27/Lib/site-packages. I think something must be wrong with my Python installation but I don't know what and how to fix it. ???? Thanks and regards, Marcus. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 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