Python 3 Script to Find Broken Links of Website or Domain URL Using BeautifulSoup4 and Requests Library SEO Tool Full Project For Beginners

You are currently viewing Python 3 Script to Find Broken Links of Website or Domain URL Using BeautifulSoup4 and Requests Library SEO Tool Full Project For Beginners

 

Welcome folks today in this blog post we will be finding broken links of website using beautifulsoup4 and requests library in python. All the full source code of the application will be shown below.

 

 

 

Get Started

 

 

 

In order to get started you need to include the following libraries as shown below

 

pip install bs4

 

pip install requests

 

After installing all the libraries make an app.py file and copy paste the following code

 

app.py

 

 

 

 

Now in order to run this python script by executing the` below command

 

 

python app.py ##yourdomainname###

 

This becomes

 

python app.py https://freemediatools.com

 

And if you execute the above command it will check all the urls and print to the console like this

 

 

 

 

And now at last it will show all the broken links to you as shown below

 

 

 

Leave a Reply