GithubHelp home page GithubHelp logo

fagun18 / website-comparison-tool Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 20 KB

The Website Comparison Tool: The Website Comparison Tool automates the process of comparing websites by leveraging the power of Python and popular libraries such as requests, selenium, BeautifulSoup, and difflib. It offers a range of features specifically designed to support SQA tasks. ⚙️

Home Page: https://www.linkedin.com/in/mejbaur/

License: MIT License

HTML 86.33% Python 13.67%
mejbaur-bahar-fagun software-quality-assurance software-testing-tools free-sqa-toos website-comparison-tools

website-comparison-tool's Introduction

Website Comparison Tool

This is a Python script that compares two websites by analyzing their content and performing various checks. It uses libraries such as requests, selenium, BeautifulSoup, and difflib to retrieve web page data, capture screenshots, compare HTML content, and analyze differences.

Prerequisites

Before running the script, make sure you have the following:

  • Python 3.x installed on your system
  • The required Python libraries installed. You can install them using pip:

pip install requests bs4 Pillow selenium webdriver_manager

  • Chrome web browser installed (required for Selenium WebDriver)

Usage

  • Clone or download the script to your local machine.

  • Open a terminal or command prompt and navigate to the directory where the script is located.

  • Run the script using the following command: python website_comparison.py

  • The script will prompt you to enter the URLs of the two websites you want to compare. Enter the URLs as requested.

  • The script will then perform the following steps:

    => Validate the URLs and check if they are accessible.

    => Retrieve the HTML content of the websites.

    => Capture full-page screenshots of both websites.

    => Compare the HTML content for differences and generate an HTML diff file.

    => Analyze the content for clickable links, clickable buttons, and visible images.

    => Retrieve and compare the URLs of the web pages within each website.

  • The script will output the results to the console and save the screenshots, HTML diff, and URL comparison files in the same directory.

License

  • This script is released under the MIT License.

Acknowledgments

This script was developed using various open-source libraries and resources. The following libraries were used:

  • requests
  • selenium
  • webdriver_manager
  • BeautifulSoup
  • difflib Special thanks to the authors and contributors of these libraries for their valuable work.

Please note that this script is provided as-is and no guarantees are made regarding its functionality or accuracy. Use it responsibly and at your own risk.

website-comparison-tool's People

Contributors

fagun18 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.