{"id":21427857,"url":"https://github.com/datascientist-ld1981/redbus-filtering-system-using-selenium-and-streamlit","last_synced_at":"2026-04-11T21:46:34.499Z","repository":{"id":264121563,"uuid":"889124405","full_name":"datascientist-ld1981/RedBus-Filtering-System-using-Selenium-and-Streamlit","owner":"datascientist-ld1981","description":"Data scrapping, storing and visualizing filtered data using selenium,mysql and streamlit","archived":false,"fork":false,"pushed_at":"2024-11-22T06:38:38.000Z","size":1628,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T07:47:41.807Z","etag":null,"topics":["pandas-dataframe","plotly","python","selenium-webdriver","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datascientist-ld1981.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-15T16:52:30.000Z","updated_at":"2024-12-01T11:49:01.000Z","dependencies_parsed_at":"2024-11-22T07:01:00.316Z","dependency_job_id":null,"html_url":"https://github.com/datascientist-ld1981/RedBus-Filtering-System-using-Selenium-and-Streamlit","commit_stats":null,"previous_names":["datascientist-ld1981/redbus-filtering-system-using-selenium-and-streamlit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datascientist-ld1981%2FRedBus-Filtering-System-using-Selenium-and-Streamlit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datascientist-ld1981%2FRedBus-Filtering-System-using-Selenium-and-Streamlit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datascientist-ld1981%2FRedBus-Filtering-System-using-Selenium-and-Streamlit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datascientist-ld1981%2FRedBus-Filtering-System-using-Selenium-and-Streamlit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datascientist-ld1981","download_url":"https://codeload.github.com/datascientist-ld1981/RedBus-Filtering-System-using-Selenium-and-Streamlit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933784,"owners_count":20371062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pandas-dataframe","plotly","python","selenium-webdriver","streamlit"],"created_at":"2024-11-22T22:07:28.165Z","updated_at":"2026-04-11T21:46:34.466Z","avatar_url":"https://github.com/datascientist-ld1981.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RedBus Inter-State Travel Information System 🚌  \n\n## Project Title  \n**RedBus Inter-State Travel Information System**  \n\n---\n\n## Problem Statement / Project Description 📝  \n\nTravelers often struggle to find consolidated, real-time data about buses operating across different states, including their availability, pricing, and schedules. The lack of a unified dashboard to visualize this information creates inefficiencies for passengers who need to compare buses and routes.  \n\nThis project solves this problem by:  \n- Scraping real-time bus data from **RedBus** using **Selenium**.  \n- Storing the data in a structured **MySQL database** for querying.  \n- Providing a **Streamlit-based dashboard** that allows users to interactively filter, explore, and visualize bus data.  \n- Displaying important details such as seat availability, route, and pricing in an easy-to-use interface.  \n\n---\n\n## Features 🚀  \n\n1. **Data Scraping**:  \n   - Scrapes bus details from RedBus using the latest version of **Selenium**.  \n   - Captures fields such as `bus_name`, `route_name`, `bus_type`, `price`, `departing_time`, `reaching_time`, and `seats_available`.  \n\n2. **Database Integration**:  \n   - Data is stored in a **MySQL database** with a structured schema for querying and filtering.  \n\n3. **Streamlit Dashboard**:  \n   - Interactive filters for `state`, `route_name`, `bus_name`, and `bus_type`.  \n   - Displays results in a table with properly formatted time fields (`departing_time`, `reaching_time`).  \n\n4. **Visualization**:  \n   - **Pie chart** showing seat availability by bus name. Buses with no names are grouped as **\"Others\"**.  \n\n5. **Responsive and Dynamic**:  \n   - Only displays relevant filters after selecting a state.  \n   - Displays the pie chart only when both `state` and `route_name` are selected.  \n\n---\n\n## Prerequisites 🛠️  \n\nBefore you begin, ensure you have the following installed:  \n1. **Python 3.7 or higher**  \n2. **Selenium WebDriver** (ChromeDriver recommended)  \n3. **MySQL Database**  \n4. Required Python libraries (install via `requirements.txt`).  \n\n---\n\n## Usage ⚙️  \n\n 1. Clone the Repository  \n```bash\ngit clone https://github.com/datascientist-ld1981/redbus-travel-system.git\ncd redbus-travel-system\n---\n\n2. Project Structure\n/redbus-travel-system\n    ├── /assets                  # Contains image assets for the dashboard\n    ├── /database                # MySQL database and schema files\n    ├── /scripts                 # Python scripts (scraping, database interactions)\n    │   ├── DataScrapping-Redbus(Pep8\u0026257).ipynb   # Jupyter notebook for scraping RedBus data\n    │   ├── config.py            # Database configuration settings\n    ├── /dashboard               # Streamlit dashboard source code\n    │   ├── redbusStreamlit.py   # Main Streamlit app for visualization\n    ├── requirements.txt         # Python dependencies\n    ├── README.md                # Project documentation\n    └── Table creation query-REDBUS.txt  # MySQL database schema\n\n\n3. Create Table in MySQL from the Text File\n\n\n4. Scrape Data from RedBus\nRun the DataScrapping-Redbus(Pep8\u0026257).ipynb Jupyter notebook to collect bus data from the RedBus website and store it in the MySQL database. You can execute this notebook in JupyterLab or Jupyter Notebook:\n```bash\njupyter notebook DataScrapping-Redbus(Pep8\u0026257).ipynb\n\n5. Start the Streamlit Dashboard\nOnce the data is scraped and stored in the database, you can start the interactive Streamlit dashboard by running:\n```bash\nstreamlit run redbusStreamlit.py\nThis will launch the dashboard in your web browser, where you can filter and explore the bus travel data interactively.\n\n\nGitHub Repository 🔗\nhttps://github.com/datascientist-ld1981\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatascientist-ld1981%2Fredbus-filtering-system-using-selenium-and-streamlit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatascientist-ld1981%2Fredbus-filtering-system-using-selenium-and-streamlit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatascientist-ld1981%2Fredbus-filtering-system-using-selenium-and-streamlit/lists"}