Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Beautiful Soup available for Python 3.4.1?

I want to try and make a program that downloads images from the internet, and I have found a guide that uses Beautiful soup. I have heard of Beautiful Soup before, so I figured that I would try it out. My only issue is that I can't seem to find a version for Python 3. I went to their website, but I was unable to find a version that worked with Python 3.

Whenever I would run the setup.py file, I would get an error that was too quick to read, but it looked like it was saying syntax error. So I looked at the code and realized that there weren't any parenthesis in front or after strings that were supposed to be printed.

I have tried numerous different webpages and different searches, but was unable to find an answer.

I'm also sorry if this is not a question related to programming, if it is not, please leave a comment on this question and I will delete the question ASAP.

like image 587
Kyle Me Avatar asked Jul 06 '14 01:07

Kyle Me


People also ask

Does BeautifulSoup come with Python?

As BeautifulSoup is not a standard python library, we need to install it first.

How do I import a BeautifulSoup in Python 3?

To use beautiful soup, you need to install it: $ pip install beautifulsoup4 . Beautiful Soup also relies on a parser, the default is lxml . You may already have it, but you should check (open IDLE and attempt to import lxml). If not, do: $ pip install lxml or $ apt-get install python-lxml .


1 Answers

BeautifulSoup4 installs fine with python3.

pip install beautifulsoup4

Make sure your version of pip is for python3!

pip -V
like image 84
MrAlias Avatar answered Nov 04 '22 05:11

MrAlias