Skip to content

Commit 83c8f75

Browse files
authored
Create README.md
1 parent aff63c5 commit 83c8f75

File tree

1 file changed

+29
-0
lines changed
  • WebScrapingScripts/Real-Time Petrol Price

1 file changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
## Description:
2+
[**Here**](https://github.com/Aditya8821/Awesome_Python_Scripts/blob/main/WebScrapingScripts/Real-Time%20Petrol%20Price/petrol_price.py) is Python Script which checks the Real-Time Bitcoin rates in INR.
3+
4+
- **Pandas:**
5+
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.
6+
7+
- **BeautifulSoup:**
8+
BeautifulSoup is a python library for pulling data out of HTML and XML files
9+
10+
- **requests:**
11+
requests module allows you to send HTTP requests and returns a response object with all the response
12+
13+
## **Real-Time Use & Purpose:**
14+
Nowdays we are seeing that fuel is becoming necessity in our busy lifestyle. So to always keep 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%.
15+
16+
## Procedure to follow:
17+
- pip install pandas
18+
- pip install requests
19+
- from bs4 import BeautifulSoup
20+
- import requests
21+
- pass page text as argument in BeautifulSoup and parse it.
22+
- pass required class name as argument in soup.find() function.
23+
- using dataframe() function in pandas create a table of the data
24+
- print that data
25+
## Sample Output:
26+
<p align="center"><img src="https://github.com/Aditya8821/Awesome_Python_Scripts/blob/main/WebScrapingScripts/Real-Time%20Petrol%20Price/Images/Demo%20Output.png"></p>
27+
28+
For any queries please contact?
29+
- [**LinkedIn**](https://www.linkedin.com/in/aditya-trivedi-032090164/)

0 commit comments

Comments
 (0)