GithubHelp home page GithubHelp logo

crawler-laravel's Introduction

Laravel Logo

Build Status Total Downloads Latest Stable Version License

PHP Web Crawler Developed with Laravel Framework

This is a simple web crawler demonstration project developed using the Laravel framework. It can be used to fetch the content of a specified URL and save metadata about the web page, such as title, description, and body.

Features

  • Input a URL to crawl
  • Crawl a screenshot of the web page
  • Extract web page title, description, and body
  • View a history of crawled records
  • Search and filter by title, description, or creation date

System Requirements

  • PHP >= 7.4
  • Composer
  • MariaSQL Database
  • Node.js and NPM (for the frontend part)

Installation Steps

  1. Clone the project repository to your local machine:

    git clone https://github.com/JerryR7/Crawler-Laravel.git
  2. Navigate to the project directory:

    cd Crawler
  3. Install PHP dependencies:

    composer install
  4. Copy the .env.example file and rename it to .env, then configure the database connection and other environment variables:

    cp .env.example .env

    Modify the following section in the .env file to configure the database connection:

    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=your_database_name
    DB_USERNAME=your_database_username
    DB_PASSWORD=your_database_password
  5. Generate the application key:

    php artisan key:generate
  6. Run database migrations:

    php artisan migrate
  7. Install frontend dependencies (if not already installed):

    npm install
  8. Create the symbolic link:

    php artisan storage:link
  9. Start the local development server:

    php artisan serve
  10. Access http://localhost:8000/crawler to view the project.

Usage Example

  1. Open the application, and you will see an input box where you can enter the URL to crawl.
  2. Enter a URL and click the "Crawl" button to initiate crawling and save web page information.
  3. You can view previous crawl records on the "Crawled Records" page.
  4. On the "Crawled Records" page, you can also use the search and filter functionality to find records with specific titles, descriptions, or creation dates.

Contributing

If you'd like to contribute to this project, please feel free to submit issues, suggestions, or pull requests. Please follow our contribution guidelines.

License

This project is licensed under the MIT License. For details, please refer to the LICENSE file.

crawler-laravel's People

Contributors

jerryr7 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.