Skip to content

Latest commit

 

History

History
 
 

Real-Time Petrol Price

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Description:

Here is Python Script which checks the Real-Time Bitcoin rates in INR.

  • Pandas: Pandas is an open source Python package that is most widely used for data science/data analysis and machine learning tasks. Here pandas dataframe is 2D size-mutable,tabular data with labeled axes.

  • BeautifulSoup: BeautifulSoup is a python library for pulling data out of HTML and XML files

  • requests: requests module allows you to send HTTP requests and returns a response object with all the response

Real-Time Use & Purpose:

Nowdays we are seeing that fuel is becoming necessity in our busy lifestyle. So to always keep an eye on the petrol price in some of the major cities of INDIA here's script which displays the real time petrol price and day before price also. It's accuracy is 100%.

Procedure to follow:

  • pip install pandas
  • pip install requests
  • from bs4 import BeautifulSoup
  • import requests
  • pass page text as argument in BeautifulSoup and parse it.
  • pass required class name as argument in soup.find() function.
  • using dataframe() function in pandas create a table of the data
  • print that data

Sample Output:

For any queries please contact?