- The 'Redbus Data Scraping and Filtering with Streamlit Application' aims to revolutionize the transportation industry by providing a comprehensive solution for collecting, analyzing, and visualizing bus travel data. By utilizing Selenium for web scraping, this project automates the extraction of detailed information from Redbus, including bus routes, schedules, prices, and seat availability. By streamlining data collection and providing powerful tools for data-driven decision-making, this project can significantly improve operational efficiency and strategic planning in the transportation industry.
- TRANSPORTATION
- Python scripting,Selenium,Data Collection,Data Management using PostgreSQL,Streamlit
- Python 3.12.7
- pgAdmin4
- Streamlit
- Selenium
Selenium is a powerful tool for automating web browsers, which is especially useful for web scraping tasks. If you want to retrieve bus details from RedBus, you can use Selenium to automate the process of searching for buses and extracting the relevant information. This involves interacting with web elements like input fields and buttons, waiting for the page to load, and extracting the desired details from the search results.
- The collected bus details data was transformed into pandas dataframes. Before that, a new database and tables were created using the Postgresql connector. With the help of Postgresql, the data was inserted into the respective tables. The database could be accessed and managed in the Postgresql environment.
- With the help of Streamlit, you can create an interactive application similar to RedBus by designing a user-friendly interface that allows users to search for bus routes, view available buses, and get details like departure times and prices
- pandas as pd
- psycopg2
- import time
- streamlit as slt
- plotly
- import datetime
- from streamlit_option_menu import option_menu
- from selenium import webdriver