Skip to content

scrapes a web page for football match details on a specific date entered by the user and saves the data to a CSV file, including the teams' names, the match time, and the result.

Notifications You must be signed in to change notification settings

AhemdMahmoud/Play-with-web-scraping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Play-with-Web-Scraping

This project scrapes a web page for football match details on a specific date entered by the user and saves the data to a CSV file, including the teams' names, the match time, and the result.

Quick Start

Want to play with these notebooks online without having to install anything?

Open In Colab (recommended)

Colab provides a temporary environment: anything you do will be deleted after a while, so make sure you download any data you care about.

Just want to quickly look at some notebooks, without executing any code?

  • Render nbviewer
  • github.com's notebook viewer also works but it's not ideal: it's slower, the math equations are not always displayed correctly, and large notebooks often fail to open.

Want to install this project on your own machine?

1.Clone the repository to your local machine.

2.Install the required libraries: csv, requests, and beautifulsoup4.

!pip install beautifulsoup4
!pip install lxml
!pip install requests

3.Run the program from the command line using the following command: python main.py.

4.Enter the desired date in the format yyyy-mm-dd.

## True Format

5.The program will scrape the matches details and save them in a CSV file named matches.csv in the same directory as the program.

Dependencies

This project depends on the following libraries:

  • csv: to write the matches details to a CSV file.
  • requests: to send HTTP requests to the website.
  • beautifulsoup4: to parse the HTML response and extract the required information.

Notes

The program saves the matches details to a CSV file named matches.csv

About

scrapes a web page for football match details on a specific date entered by the user and saves the data to a CSV file, including the teams' names, the match time, and the result.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published