Skip to content

Commit 75a524f

Browse files
Merge pull request #898 from neelshah2409/main
Bank Data Finder
2 parents 16edd19 + 03b140c commit 75a524f

File tree

5 files changed

+96
-0
lines changed

5 files changed

+96
-0
lines changed
Binary file not shown.
11.3 KB
Loading
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# **Bank Data Finder**
2+
3+
## Aim/Purpose
4+
5+
- To get all the information regarding any bank using their IFSC code
6+
7+
## Short description of package/script
8+
9+
- Here using request we request the details from ifsc.razorpay.com website and then fetch all the information properly through pandas in proper format and to make it a web app we use streamlit.
10+
- Here we fetch all the feture/facility available at the bank like rtgs , upi ,neft , imgs , etc.
11+
- List out the libraries imported > pandas , requests and streamlit.
12+
13+
14+
## Workflow of the Project
15+
16+
- Just get the url and ifsc codes of the bank first and then run the script and then enter and code so the details of that bank brach will be shown .
17+
18+
19+
## Setup instructions
20+
21+
- Clone my repository.
22+
- Install the required libraries.
23+
- `bank_data_finder.py` is the main python file of Streamlit Web Application.
24+
- To run app, write following command in CMD. or use any IDE.
25+
26+
```
27+
streamlit run bank_data_finder.py
28+
```
29+
30+
31+
## Output
32+
33+
- ![image](Images/output_1(bank_data_finder).png)
34+
35+
## Author(s)
36+
37+
- Neel Shah
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import streamlit as st
2+
import requests
3+
import pandas as pd
4+
5+
def Bank_Data_Finder(IFSC_Code):
6+
try:
7+
#fetching the data
8+
url = 'https://ifsc.razorpay.com/' + 'IFSC Code'
9+
bank_info = requests.get(url).json()
10+
all_details = []
11+
bank_name = bank_info['BANK']
12+
branch = bank_info['BRANCH']
13+
address = bank_info['ADDRESS']
14+
city = bank_info['CITY']
15+
state = bank_info['STATE']
16+
ifsc = bank_info['IFSC']
17+
contact = bank_info['CONTACT']
18+
upi = 'UPI: ' + 'Available' if bank_info['UPI'] == True else 'Not Available'
19+
rtgs = 'RTGS: ' + 'Available' if bank_info['RTGS'] == True else 'Not Available'
20+
neft = "NEFT: " + 'Available' if bank_info['NEFT'] == True else 'Not Available'
21+
imps = 'IMPS: ' + 'Available' if bank_info['IMPS'] == True else 'Not Available'
22+
#appending all the details
23+
all_details.append(bank_name)
24+
all_details.append(branch)
25+
all_details.append(address)
26+
all_details.append(city)
27+
all_details.append(state)
28+
all_details.append(ifsc)
29+
all_details.append(contact)
30+
all_details.append(upi)
31+
all_details.append(rtgs)
32+
all_details.append(neft)
33+
all_details.append(imps)
34+
return all_details
35+
except Exception as e:
36+
print(e)
37+
38+
def run():
39+
#function for streamlit
40+
st.title("Bank IFSC Finder")
41+
42+
## IFSC
43+
ifsc = st.text_input('Enter your Bank IFSC Code Eg.KARB0000001')
44+
if st.button("Search"):
45+
bank_data = Bank_Data_Finder(ifsc)
46+
data = pd.DataFrame(bank_data)
47+
if bank_data:
48+
index_name = ['Bank Name','Branch','Address','City','State','IFSC','Contact','UPI','RTGS','NEFT','IMPS']
49+
df = pd.DataFrame({'Info': bank_data},index = index_name)
50+
st.dataframe(df)
51+
else:
52+
st.warning("Check your IFSC code!!!")
53+
run()
54+
55+
### Sample IFSC codes
56+
# UTIB0003655
57+
# SBIN0000813
58+
# UBIN0531324
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Libraries used: Streamlit , requests ,pandas

0 commit comments

Comments
 (0)