An open API service indexing awesome lists of open source software.

https://github.com/leoleman555/web_scraping

A little script for scrape site with python
https://github.com/leoleman555/web_scraping

Last synced: 7 months ago
JSON representation

A little script for scrape site with python

Awesome Lists containing this project

README

          

# Web Scraping Project

## Overview

This project is a simple web scraper that extracts information about countries from the Scrape This Site website.

## Table of Contents

- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
- [Contact](#contact)

## Prerequisites

This project only requires Python 3.6+

## Installation

To run the project locally, follow these steps:

1. Clone the repository:
```bash
git clone https://github.com/LeoLeman555/Web_Scraping.git
```
2. On this GitHub page, please click on watch
3. Navigate to the project directory:
```bash
cd Web_Scraping
```
4. Install the required dependencies:
```bash
pip install -r requirements.txt
```
5. Run the script:
```bash
python src/main_scraping.py
```

## Usage

To run the scraper, simply execute the Python script:

```bash
python main_scraping.py
```

The script will prompt you to enter the name of a country. If the country is in the scraped data, it will display information about the country's capital, population, and area. If the country is not in the data, it will display an error message.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.

## Contact

For any questions or feedback, feel free to contact me:

- **Léo Leman**: [GitHub Profile](https://github.com/LeoLeman555)