Data Science – Web scraping (Access Share/BSE Market price)

Retrieve Live Market Price Accessing Share and Bombay Stock Exchange (BSE) Market price using Web scraping with the help of Python’s Beautiful Soup Package. In this example we covered TCS share price as an example. Here is the Python code to perform the task. #data science with Python – TCS share and BSE Market price

Share

Data Science – Web scraping (Access Share/BSE Market price) Read More »

Text extracting from an Image (OCR )

Extract text from an image. Extracting text from an image using pytesseract tool and package using Python programming. install tesseract.exe from here. First, here is an image which contains some text as following..[saved as sample.jpg) And here is the full code to extract text from above image. from PIL import Image #Python Imaging Library (abbreviated

Share

Text extracting from an Image (OCR ) Read More »

Joins using Python and MySQL

MYSQL Joins with Python Inner join example to retrieve records from two table. Here are those two table: Now we will retrieve records from both tables based on regno column. Source code is:  # pip install mysql-connector import mysql.connector as sql # pip install pandas import pandas as pd db_connection = sql.connect(host=’localhost’, database=’college_db’, user=’root’, password=”)

Share

Joins using Python and MySQL Read More »

Python and MySQL

Database connectivity using Python In this article we’ll be covering all database examples like SELECT, INSERT, UPDATE and DELETE operations using Python and MySQL database. First,, create database[college_db] and table[student_info] as per following image and insert few records  [here we using wamp server]  before you execute all programs in Python. a) SELECT operation # pip

Share

Python and MySQL Read More »

Face recognition using Python

Face detection In this machine learning example identify face using Python programming. Package  used in this example is opencv [computer vision]. To install this package simply use following syntax: pip install opencv-python import cv2 #pip install opencv-python # Load the cascade face_cascade = cv2.CascadeClassifier(‘face_detector.xml’) # Read the input image img = cv2.imread(‘test2.jpg’) # Detect faces

Share

Face recognition using Python Read More »

Data Science – 4 [extract gold price using web scrap]

Extract live gold price using web scrap – Data Science in the following example we used three packages, they are a) bs4 [Beautiful Soup for web scraping] b) pandas [panel data for data representation ] c) request [to get source / url] #data science with Python – extracting Gold Price import bs4 import pandas as

Share

Data Science – 4 [extract gold price using web scrap] Read More »

Data Science – 3 [web scraping]

Retrieve current temperature using BeautifulSoup #extract current temp import requests import bs4 #url=”https://weather.com/en-IN/weather/today/l/12.96,77.59?par=google&temp=c” url=”https://weather.com/en-IN/weather/today/l/17.31,76.81?par=google&temp=c” r=requests.get(url) soup=bs4.BeautifulSoup(r.text, “html.parser”) val= soup.find(‘span’, “data-testid=’TemperatureValue'”, class_=’CurrentConditions–tempValue–3KcTQ’) print(“Current temp is : “, val.text) Output of the above program is : Current temp is : 30° 2. To check live price, title and ratings of particular product #data science with Python –

Share

Data Science – 3 [web scraping] Read More »

Data Science – 2 [web scraping]

Data science with using Python In the following example we will be retrieving live population records using BeautifulSoup package.[web scraping] Live Population record #data science with Python – world’s population stat import bs4 import pandas as pd import requests url = ‘https://www.worldometers.info/world-population/#:~:text=Population%20in%20the%20world%20is,it%20was%20at%20around%202%25.’ result = requests.get(url) soup = bs4.BeautifulSoup(result.text,’lxml’) pop = soup.find_all(‘table’ ,class_= ‘table table-striped table-bordered

Share

Data Science – 2 [web scraping] Read More »

Share
Scroll to Top