Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Web Scraper 🚀

An advanced AI-powered web scraper that extracts content from a given URL and answers user queries based on the scraped data. Built using Streamlit for the UI, LangChain_Ollama for parsing and understanding the content, and Selenium for web scraping.


Features 🛠️

  • URL-Based Scraping – Enter a website URL, and the scraper extracts relevant content.
  • AI-Powered Answers – Uses LangChain_Ollama to process the scraped data and generate intelligent responses to user queries.
  • Interactive UI – Built with Streamlit for a user-friendly experience.
  • Dynamic Web Scraping – Leverages Selenium to extract content from static and JavaScript-rendered websites.
  • Efficient & Scalable – Optimized for fast and responsible web scraping.

Tech Stack 🏗️

  • Frontend/UI: Streamlit
  • Web Scraping: Selenium
  • AI & Parsing: LangChain_Ollama
  • Backend: Python

Installation & Setup ⚙️

1. Clone the Repository

git clone https://github.com/TGSK07/AI_WebScraper.git
cd AI_WebScraper

2. Install Dependencies

Ensure you have Python installed (recommended Python 3.8+), then run:

pip install -r requirements.txt

3. Set Up WebDriver (For Selenium)

  • Download the WebDriver compatible with your browser (ChromeDriver recommended).
  • Place it in your system's PATH or specify its location in the script.

4. Run the Application

streamlit run app.py

Example Workflow

  1. Input URL: https://example.com
  2. Scraped Content: Extracts text and relevant data.
  3. User Query: "What is the main topic of this page?"
  4. AI Response: "The page discusses example-based learning methods."

Future Improvements 🌟

  • Improve content extraction for more complex page structures.
  • Enhance AI responses with more advanced NLP models.
  • Implement caching to speed up repeated queries.
  • Support for scraping multiple pages at once.

Contributing 🤝

Contributions are welcome! Feel free to open issues or submit pull requests.


Author

Developed by Sonu Kumar 🚀

About

An advanced AI-powered web scraper built with LangChain_Ollama, Streamlit, and Selenium. It automates data extraction from websites, processes text using LLMs and NLP, and provides insights through an interactive Streamlit-based UI. Designed for efficiency, scalability, and responsible scraping.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages