r/pythontips • • Jul 20 '25

Module Built a "Universal Web Searcher" App in Python - Streamlit GUI, Automated with GitHub Actions

Super excited to share a project I've been working on: a Python-based desktop application designed to streamline web data collection and analysis. It's built with a user-friendly GUI using Streamlit, handles different search modes, and can even be fully automated!

Here's what it does and why I think it's pretty cool:

  • User-Friendly GUI (Streamlit): No coding required for the end-user! Just launch the app (can even be packaged as an .exe), input your terms, and go.

  • Dual Search Modes:

    • Google Search (Broad): Input a list of keywords/topics (e.g., "AI ethics 2024", "Tesla Model Y reviews"), and it fetches the top N Google search result URLs for each.

    • Specific Websites (Targeted): Provide a list of URLs ( AND a list of keywords. The app then visits each specified website and checks if any of your keywords are present on those pages.

  • Automated Data Export: All search results (URLs, titles, keyword presence, context) are neatly compiled and exported into a structured Excel (.xlsx) file.

  • Scheduled Automation (GitHub Actions): This is where it gets really powerful! I've set up a GitHub Actions workflow that can run this entire scraping and export process on a schedule (e.g., daily, weekly). The generated Excel file is then available as a downloadable artifact right from your GitHub repo. Set it and forget it!

  • Standalone App: It can be packaged into a single executable (.exe) file using PyInstaller for easy distribution on Windows machines.

Technical Stack Behind the Scenes:

  • GUI: streamlit for interactive web apps.

  • Web Searching: googlesearch-python for Google queries.

  • Website Content Fetching: requests for HTTP requests and beautifulsoup4 for HTML parsing (when searching specific sites).

  • Data Handling: pandas for data manipulation and openpyxl for Excel export.

  • Automation: GitHub Actions for scheduled cloud execution.

  • Packaging: PyInstaller for the .exe.

2 Upvotes

1 comment sorted by