0% found this document useful (0 votes)
19 views16 pages

Cric Score App

The document outlines a project to create a Python tool for providing live cricket match information, including team names, scores, and match summaries. It aims to teach concepts such as object-oriented programming, GUI development with Tkinter, web scraping, and making HTTP requests. The project emphasizes hands-on learning and practical application of Python programming skills.

Uploaded by

23eg106e31
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views16 pages

Cric Score App

The document outlines a project to create a Python tool for providing live cricket match information, including team names, scores, and match summaries. It aims to teach concepts such as object-oriented programming, GUI development with Tkinter, web scraping, and making HTTP requests. The project emphasizes hands-on learning and practical application of Python programming skills.

Uploaded by

23eg106e31
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

PYTHO

PROJECT BASED
N LEARNING
PRESENTERS:
23EG106E
26
23EG106E
37
FACULTY: SARALA 24EG506A
MAM 01
24EG506B0
3
CRICSCOR
AP
E
P
INTRODUCTIO
N
During the exciting cricket season, we want to create a user -friendly
Python tool that provides detailed information on all the live cricket
matches scheduled for a specific day.

This tool will offer the following informtion for each match:
1.The names of the teams
playingscores for
2. The current
each team.
3.A brief summary of the ongoing match, such as
who's batting, bowling, and the number of overs
nal GUI should look something similar to below:

Back to Agenda
This project aims to help learners gain deep understanding of the
following concepts:

1.Python's object-oriented programming (OOP) principles, which involve structuring code for
easier management

2.Developing graphical user interfaces (GUIs) in Python to make the tool visually appealing and
user-friendly

3.Learning about web scraping, a technique that enables us to extract data from websites, in
this case, cricket match websites

4.Exploring how to parse and retrieve data from HTML or XML, which are common data formats
used on the web

5.Making HTTP requests to fetch live cricket match data from the
internet
ABILITY TO
CREATE GUI
Tkinter is a library in Python that makes it easy to
create simple graphical user interfaces (GUIs) for
your programs. GUIs are the windows and buttons
you see in many applications. Tkinter lets you
design these windows and buttons for your Python
programs

In this example, we import Tkinter and use it to create a basic window with a label that says "Hello,
Tkinter!" The window.mainloop() line keeps the GUI running so you can interact with it. Tkinter makes
it easy to create buttons, input fields, and more to build user?friendly interfaces for your Python
Back to Agenda
programs
PYTHON Mission
1. Creating a Class
OBJECT 2. Creating
ORIENTED Objects
3. Accessing Attributes and

PROGRAMMIN Methods
4. Modifying
G FEATURES Attributes
5. Creating Multiple
Objects
Vision
Classes and objects allow you to model
real-world entities and their behaviors,
making your code more organized and
easier to understand
Back to Agenda
What is web scraping
and it use cases Use Cases of Web Scraping:

Web scraping is like a digital robot that collects


information from websites. It's a way to
automatically extract data from web pages,
just like you might copy and paste information
by hand, but much faster and more efficiently.
Web scraping involves writing a program to
access websites, read the data on those sites,
and extract specific pieces of information

Back to Agenda
Making HTTP requests Back to Agenda

using the request


module
The requests module in Python is a popular library for making HTTP calls.
Here's a simple example of how to use it to make a GET request to a
website and retrieve its content:

We import the requests module.


We use the requests.get() function to send a GET request to "https:// www.example.com."
We check if the request was successful by inspecting the status_code attribute of the response.
A status code of 200 indicates success. If the request was successful, we print the content of the
response using response.text.

The requests module makes it easy to interact with web services, fetch web pages, and work with
APIs.
It simplifies the process of making HTTP requests and handling responses in Python.
We import the BeautifulSoup class from the bs4 library. We
create a BeautifulSoup object called soup by parsing the
HTML content with the 'html.parser'. We use
soup.title.string to extract and print the title of the web
page.
Now you are all set to understand and make the best out of the
project . Happy learning

THANK

You might also like