/Web-Scrapping

This repository contains code examples and exercises for web scraping with BeautifulSoup, covering techniques such as extracting data from HTML and XML documents, navigating web pages, and parsing data from websites. The code is well-documented and structured, making it easy to follow and understand.

Primary LanguagePython

Web Scraping with Python

This is a simple Python script for web scraping using BeautifulSoup library. It scrapes a user's profile page on LeetCode, retrieves various statistics, and saves the data in a CSV file.

Prerequisites

Before running the script, make sure to install the following libraries:

  • csv
  • requests
  • BeautifulSoup

You can install these libraries by running the following command:

pip install requests beautifulsoup4

Usage

To use the script, simply run the web_scraping.py file in your terminal.

The script will prompt you to enter the username of the LeetCode user whose profile you want to scrape. Once you enter the username, the script will retrieve the user's profile page, scrape various statistics, and save the data in a CSV file called output.csv.

License

This project is not licensed under the MIT License - soo there is no lisence details.