On 2014-05-11 23:03, Simon Evans wrote:
I have downloaded Beautiful Soup 3, I am using Python 2.7. I understand from 
your message that I ought to use Python 2.6 or Python 3.4 with Beautiful Soup 
4, the book I am using 'Getting Started with Beautiful Soup' is for Beautiful 
Soup 4. Therefore I gather I must re-download Beautiful Soup and get the 4 
version, dispose of my Python 2.7 and reinstall Python 3.4. I am sure I can do 
this, but doesn't the above information suggest that the only Python grade left 
that might work with Beautiful Soup 3 would by Python 2.7 - which is the 
configuration I have at present, though I am not perfectly happy, as it is not 
taking code in the book (meant for BS4) such as the following on page 16 :

helloworld = "<p>Hello World</p>"

re:-
--------------------------------------------------------------------------------
c:\Beautiful Soup>helloworld = "<p>Hello World</p>"
'helloworld' is not recognized as an internal or external command,
operable program or batch file.
--------------------------------------------------------------------------------
I take it that this response is due to using code meant for BS4 with Python 
2.6/ 3.4, rather than BS3 with Python 2.7 which is what I am currently using. 
If so I will change the configurations.

That's the Windows command prompt, not the Python command prompt.

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to