/Scrapping-JsonData-Using-BeautifulSoup

Extract JSON data from HTML pages using BeautifulSoup and display it dynamically on a user-friendly webpage. Simplify the process of parsing and transforming HTML sources into structured JSON data for easy visualization and exploration. A powerful tool for efficient data extraction and web display.

Primary LanguageHTML

Scrapping-JsonData-Using-BeautifulSoup

HTML to JSON Data Extraction and Web Display with BeautifulSou

Extract JSON data from HTML pages using BeautifulSoup and display it dynamically on a user-friendly webpage. Simplify the process of parsing and transforming HTML sources into structured JSON data for easy visualization and exploration. A powerful tool for efficient data extraction and web display.

The project consists of two main components: data extraction and web display. The data extraction process involves parsing HTML pages using BeautifulSoup and locating the desired JSON data within the HTML structure. Once the JSON data is extracted, it undergoes transformation to ensure it is in a structured format suitable for display.

Usage

Follow the steps below to use the project: Clone the project repository from GitHub. Install the required dependencies by running the following command:

. pip install -r requirements.txt

Extracting JSON Data:

WE Assignment is the folder containing html pages. Place your HTML files containing the desired JSON data in the html_files directory. Run the following command to extract the data:

. python scrap.py

The script will parse the HTML files using BeautifulSoup and extract the JSON data. The extracted data will be saved in the output directory.

Web Display:

To view the extracted JSON data on a webpage, follow these steps: Copy the desired HTML template file from the templates directory to the project root directory. Rename the template file to index.html. Open the index.html file in a web browser. The JSON data will be dynamically rendered on the webpage, providing an interactive display.

Requirements

. Python 3.x . BeautifulSoup . Web browser

Ensure that the necessary dependencies are installed before running the project.

Contributing

Contributions to this project are welcome! If you encounter any issues or have suggestions for improvement, please feel free to submit a pull request.