giauphan/crawl-blog-data
Composer 安装命令:
composer require giauphan/crawl-blog-data
包简介
This powerful web scraping tool is designed to gather data from blogs and websites with ease, providing you with valuable insights and information.
README 文档
README
Overview
Welcome to the Crawler Blog for Laravel repository! This robust web scraping tool is crafted to effortlessly gather data from blogs and websites, delivering valuable insights and information. Whether you're a content creator, market researcher, or e-commerce entrepreneur, this Laravel-based crawler provides an ideal solution for your data extraction needs.
Features
- Web Scraping: Extract data from various blogs and websites, including blog posts, product descriptions, prices, and customer reviews.
Installation
Follow these steps to get the Crawler Blog for Laravel up and running:
- Clone the repository:
composer require giauphan/crawl-blog-data -W
Laravel 10.x
You need to add provider and alias to your config/app.php file:
<?php 'providers' => [ Giauphan\CrawlBlog\CrawlBlogDataServiceProvider::class ],
You need to add commands to your app/Console/Kernel.php file:
protected function commands(): void { $this->load(__DIR__.'/Commands'); $this->load(__DIR__.'/../CrawlBlog'); require base_path('routes/console.php'); }
Laravel 11.x
You need to add commands to your bootstrap/app.php file:
use App\CrawlBlog\CrawlExample; ->withCommands([ CrawlExample::class, ])
You can publish and run the migrations with:
php artisan vendor:publish --provider="Giauphan\CrawlBlog\CrawlBlogDataServiceProvider" --tag="migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --provider="Giauphan\CrawlBlog\CrawlBlogDataServiceProvider" --tag="command"
- Configuration:
- Update the
.envfile to configure the database settings. - Adjust the
CrawlBlogData.phpfile to customize scraping behavior based on your requirements.
- Update the
You can generate a new settings class using this artisan command.
php artisan make:crawl-blog CrawlExample
- Executing the Crawler:
Run the crawler via the command line using the following command:
php artisan crawl:CrawlExample url category_name lang limitblog
This initiates the web scraping process, and the extracted data will be saved to the configured database tables.
Contributions
We welcome contributions from the community! If you encounter bugs, have feature requests, or want to enhance the crawler, please submit issues or pull requests on GitHub.
License
The Crawler Blog for Laravel is open-source software licensed under the MIT License. Feel free to use, modify, and distribute it following the license terms.
Contact
For inquiries or support, contact us at Giauphan012@gmail.com.
Thank you for using the Crawler Blog for Laravel! Happy scraping!
giauphan/crawl-blog-data 适用场景与选型建议
giauphan/crawl-blog-data 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.26k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 01 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 giauphan/crawl-blog-data 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 giauphan/crawl-blog-data 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-16