Here’s a refined, detailed, and categorized version of the documentation for Ai-Web-Scraper, including the addition of Ollama and its required model:
Ai-Web-Scraper is an AI-powered web scraping tool that uses natural language processing (NLP) to extract data from websites. It is designed to be user-friendly, efficient, and scalable.
- Google Chrome: Ensure Google Chrome is installed on your system.
- Python: Python 3.7 or higher is required.
- Ollama: Required for advanced NLP capabilities.
-
Clone the Repository:
git clone https://github.com/your-username/Ai-Web-Scraper.git cd Ai-Web-Scraper -
Install Required Packages:
Install the necessary Python packages using:pip install -r requirements.txt
-
Install ChromeDriver:
- Mac Users:
brew install chromedriver
- Windows/Linux Users:
Download the correct version of ChromeDriver from the official website and add it to your system's PATH.
- Mac Users:
-
Set Up Ollama:
- Download and install Ollama from the official website.
- Install the required NLP model (e.g.,
ollama-model-nlp):ollama install ollama-model-nlp
- Ensure Ollama is running in the background while using Ai-Web-Scraper.
-
Verify Installation:
- Ensure all dependencies are installed correctly.
- Test ChromeDriver by running:
chromedriver --version
- Verify Ollama installation by running:
ollama list
-
Start the Application:
Navigate to the cloned repository and run:streamlit run app.py
-
Access the Web Interface:
Open a web browser and go to:http://localhost:8501/ -
Enter Website URL:
- Input the URL of the website you want to scrape in the provided field.
-
Start Scraping:
- Click the
Scrapebutton to initiate the scraping process.
- Click the
-
View Results:
- The scraped data will be displayed in a table format on the web interface.
- AI-Powered Scraping: Uses NLP to extract and interpret data from websites.
- Multi-Website Support: Works with a variety of website types.
- User -Friendly Interface: Simple and intuitive web-based interface.
- Scalable: Designed to handle small to medium-sized scraping tasks efficiently.
- Browser Support: Currently only supports Google Chrome.
- JavaScript-Heavy Websites: Struggles with websites that rely heavily on JavaScript for rendering content.
- Model Dependency: Requires Ollama and its NLP model for advanced features.
- Add support for multiple browsers (e.g., Firefox, Safari).
- Improve compatibility with JavaScript-heavy websites.
- Introduce advanced features like data filtering, sorting, and export options.
- Enhance NLP capabilities with more sophisticated models.
- Add support for batch scraping and scheduling.
Ollama provides advanced NLP capabilities, enabling Ai-Web-Scraper to interpret and extract data more accurately.
-
Download Ollama:
Visit the official website and download the appropriate version for your operating system. -
Install the NLP Model:
Run the following command to install the required model:ollama install ollama-model-nlp
-
Run Ollama:
Ensure Ollama is running in the background before starting the Ai-Web-Scraper application. -
Verify Model Installation:
Check that the model is correctly installed by running:ollama list
This command will display the installed models, confirming that the necessary NLP model is available for use.
-
Integrate with Ai-Web-Scraper:
The Ai-Web-Scraper will automatically utilize the Ollama model during the scraping process, enhancing its data extraction capabilities.
We welcome contributions from the community! If you have any suggestions, bug reports, or feature requests, please feel free to open an issue or submit a pull request.