Welcome back, everyone, to our second practical section in this section, we're going to be using
beautiful soup.
Now, let me first just say that it's such an awesome library name.
I've seen a ton of libraries and frameworks.
Beautiful soup is by far one of my favorite names.
So if any of you go on to invent a library that sounds cooler than beautiful soup, please let me know.
All right.
So that's enough of my tangent.
And Beautiful Soup is a python library for pulling data out of HTML and XML files.
Beautifuls group also supports the HTML parser included in Python Standard Library, but also supports
a range of third party options, one of them being L XML.
And that's probably one of the most popular parsers to use in combination with beautiful soup.
And when we think of it, we can think of beautiful soup, more of a parser.
And you've heard me mention this term parser because scrapie was more of a general crawler where it
can initiate those Krall's those requests built it now with beautiful soup, we're going to be using
the request library.
And this is going to make sense when we start coding.
But we're going to be using requests and requests is one of the most useful python libraries, in my
opinion, that you're going to find.
It's a really simple HTP library since we'll be using beautiful soup requests and Zimmel we need to
install them.
So if I go to my environments tab and I go down to find my environment that I'm using, mine was titled
Web Scrape.
You click on it.
We want to bring it up and I'm going to go to not installed.
OK, if I go to not installed I can search for our packages that we need.
We need to install beautiful soup then we need to install XML and request.
So let's install this click apply and I'll bring that to the video when it's installed and we can continue
in the process.
We can do the same thing for XML.
But what I'm showing here, I want to check it might have been preinstalled or a dependency.
So I'm going to go back and I already have installed.
But you can find the example within Anakonda.
And lastly, we need to request.
So let me go back to Nonet stalled.
Go back to.
And this one could be also installed as well.
Let me go back to install check for requests.
I already have requests installed within my environment so that I'll be the same process, just double
check to see which is installed and which is and if you want, I'll launch a terminal.
Right now you can use pipe.
I always recommend it if you can keep them within one package manager.
So since we're using Anakonda, we can keep it within the condo environment since Kanha has these packages.
But it's also possible to use another package manager in conjunction with QandA.
Sometimes conflicts can arise or maybe it increases the chance slightly depending on versions and dependencies.
But if you want to launch a terminal with your environment of launch right now as an example.
Remember always to activate source, activate webs, great, and we would run PIP, install requests,
you could run, I'm not going to install that because I already have it within my environment.
Same thing for beautiful soup.
It would be pip install beautiful soup for and also pip install Zimmel.
All right, once we have these installed launch, Spider and I will see you in the next video.