- Web Server with PHP Installed
- MySQL Database
-
Clone the Repository
-
Setting Up Database
- Import the file named "dbsearch.sql" into your MySQL database. This file sets up the required tables.
-
Connect to the Database
- Go to config/connection.php and update the connection details (hostname, username, password, database).
-
Adjusting File Paths
- If your file structure is different, update the file paths in the PHP files accordingly.
-
Configuring Permissions
- Ensure the web server can read and write files for storing JSON data.
-
Run the Application
- Run sql script in sql/webcrawler.sql in you mysql database
- Change connection settings from config/connection.php
- Type url localhost/webcrawler in your browser and crawler will be working.
- Enter the URL and depth in the search form.
- Click the "Search" button.
- Once the crawling process is finished, you'll be redirected to a page where you can search for specific keywords in the crawled data.
- All crawled data will be stored in the "jsondata" folder, with each unique URL having its own JSON file.