Skip to content

Files

Latest commit

 

History

History
48 lines (36 loc) · 2.94 KB

File metadata and controls

48 lines (36 loc) · 2.94 KB

Redbus-Data-Scraping-with-Selenium-Dynamic-Filtering-using-Streamlit

Introduction

  • 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.

Domain

  • TRANSPORTATION

SKILL-TAKEAWAY

  • Python scripting,Selenium,Data Collection,Data Management using PostgreSQL,Streamlit

TECHNOLOGY USED

  • Python 3.12.7
  • pgAdmin4
  • Streamlit
  • Selenium

FEATURES OF APPLICATION

Retrive the Bus Information:

 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.

Store data in database:

  • 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.

web app - streamlit:

  • 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

PACKAGES AND LIBRARIES

  • pandas as pd
  • psycopg2
  • import time
  • streamlit as slt
  • plotly
  • import datetime
  • from streamlit_option_menu import option_menu
  • from selenium import webdriver

Image1 Image2 Image3 Image4 Image5

Redbus-Data-Scraping-with-Selenium-Dynamic-Filtering-using-Streamlit App Link: https://wuazfmtjvbhhbzv77wgiwq.streamlit.app/

License

This project is licensed under the MIT License - see the LICENSE file for details.