Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anlisha-maharjan/laravel-web-scraping
Web Scraping With PHP. A Laravel REST API to fetch content of any website.
https://github.com/anlisha-maharjan/laravel-web-scraping
laravel8 php php-crawler spatie-crawler web-scraper
Last synced: 3 months ago
JSON representation
Web Scraping With PHP. A Laravel REST API to fetch content of any website.
- Host: GitHub
- URL: https://github.com/anlisha-maharjan/laravel-web-scraping
- Owner: anlisha-maharjan
- License: mit
- Created: 2022-02-10T15:04:07.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-15T11:14:35.000Z (over 1 year ago)
- Last Synced: 2024-09-28T19:42:17.225Z (3 months ago)
- Topics: laravel8, php, php-crawler, spatie-crawler, web-scraper
- Language: PHP
- Homepage:
- Size: 78.1 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## About
Web Scraping With PHP. A Laravel REST API to fetch content of any website. We’ll be using spatie/crawler package which will provide us with a great features for writing crawlers without going absolutely crazy!
## Requirements
1. PHP verion 5.6 or newer
2. composer### Setup
```bash
# Clone the repo
git clonecd laravel-web-scraping
# Copy .env.example to .env
cp .env.example .env# Update/Install depencencies
composer update# Sets the APP_KEY value in . env file
php artisan key:generate# First setup database connections in .env such as DB_DATABASE=laravel-web-scraping DB_USERNAME= and DB_PASSWORD
# Run all migrations and seed database
php artisan migrate:fresh --seed```