parsing - Trying to run beautifulsoup4, nead help or suggest another way to parse website data -


i intalled python requests correctly (just dragged folder lib folder), went install beautifulsoup , kept getting error below. tried doing pip install, thought successful novice , bit confusing.

*traceback (most recent call last):   file "c:\python34\test.py", line 1, in <module>     import bs4   file "c:\python34\lib\bs4\__init__.py", line 175     except exception, e:                     ^ syntaxerror: invalid syntax >>>*  

can simplify process or suggest better way gather data website.

many thanks.

the above code have python 2.x syntax , working python 3. either make mistake in installation or beautifulsoup setup have bug.

i suggest uninstall , reinstall again using pip. make sure using pip version of python 3.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -