Skip to main content

Posts

Showing posts from March, 2022

Live IPL Score Using Python || Python Code for Live Cricket Score || IPL Match Detail Program in Python || Live Cricket Score - Creation Code

  Live IPL Score Using Python Hello coders, we are going to learn how we can create a GUI application to build a live score updater using python. We are going to use web scraping using BeautifulSoup class from bs4. We will use the crickbuzz for scraping Module to Be used: tkinter - Preinstalled module request - For requesting the webserver bs4 - It is used for web scraping Installation: pip install request pip install beautifulsoup4 Code: from tkinter import * import requests from bs4 import BeautifulSoup # create instance for window root = Tk () # set title for window root. title (" Indian Premier League ") # screen color configure root. config ( background = " skyblue ") # cricbuzz url to get score updates url = " https://www.cricbuzz.com/ " def get_score ():     # request data from cricbuzz     page = requests. get ( url )     soup = BeautifulSoup ( page . text ,' html.parser ')     # name of first team     team_1 = soup. find_all ( cl

Build a Ship Using Only CSS || CSS Animation Project || CSS Design Code || Modern CSS Design - Creation Code

Build a Ship Using Only CSS CSS is a tool for web designers to be unique by creating unique designs and patterns in a website. You can master CSS by creating unique projects and practicing a lot. In this post, we will build a ship using only CSS. #img1 Explanation: This is our project, we are going to build this project. Now you can create it very easily. If you look at the img1 then you can find that the hole design is based on squares and lines. #img2 The top part(ship) and the body(body1 and body2) of the ship is basically boxes so our idea is to build this using the border property of CSS.  Using border and giving these it some height and width we can create these boxes very easily. But if we create these boxes then we need to minus the bottom part of the boxes it can be done by  border-bottom-color:black border-bottom:none You can choose any of the above   div . ship {     border-width: 10 px ;     height: 44 px ;     width: 80 px ;     margin-left: 150 px ;     margin-top: 100 px

Auto Programming With Python || How do You Automate a Programm Using Python || Fun with Python - Creation Code

  Auto Programming with Python In this post, we will create an auto program using python. In this auto program, we will send a message to your friend  Module to Be Used: pyautogui random Code: #creation code import random import pyautogui as pg import time text = ('like this video', 'subscribe') time.sleep(10) #creation code for i in range (100):     t = random.choice(text)     pg.write('Please ' + t)     pg.press('enter') Follow my socials: Youtube: https://www.youtube.com/channel/UCU1qNFntn7dCi9uqyvrGKOg Instagram:  https://www.instagram.com/python.math/ Twitter: https://twitter.com/Pritish369 For any question or coding discussion, you can join my discord or telegram: Discord: https://discord.gg/be7MmSuV Telegram: https://t.me/Python_Math_Community