Skip to main content

Posts

Showing posts with the label code

Weather Scrapper using python

Beautiful  Soup  is  a  library  which  facilitates  the  scraping  of  information  from  web  pages.  It    sits  atop  an  HTML  or  XML  parser,  providing  Pythonic  idioms  for  parse  tree  iteration,  searching,  and  alteration. Beautiful  Soup  is  a  library  which  facilitates  the  scraping  of  information  from  web  pages.  It  sits  at  the  top  of  an  HTML  or  XML  parser,   providing  Pythonic  idioms  to  iterate,  search,  and  modify  the  parser  tree. Copy below source code: libraries required: Requests & bs4 or BeautifulSoup import requests from bs4 import BeautifulSoup search = "Weather in CALIFORNIA" url = f"https://www.google.com/search?&q={search}" req = requests.get(url) aw = BeautifulSoup(req.text, "html.parser") update = aw.find("div" ,class_="BNeawe").text #python #code #webscrapper 

EMPLOYEE MANAGEMENT SYSTEM PROJECT CODE

EMPLOYEE MANAGEMENT SYSTEM PROJECT CODE A - Below is the source code of the project. B - Create separate class files for every class. C - Copy the code of one class (ex: login.java) and paste it in Login class file, do it for every class . #stream #blog #knowledge 1 - Create your first class with name 'conn' and paste the code below in it  package Employeee; import java.sql.*; public class conn{        public Connection c;     public Statement s;     public conn(){         try{             Class.forName("com.mysql.jdbc.Driver");             c = DriverManager.getConnection("jdbc:mysql:///project3","root","");             s = c.createStatement();         }catch(Exception e) {             e.printStackTrace();         }     } }   2 - Create second class with name 'Login' and paste the code below in it package Employeee; import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.sql.*; cl