starfruit/crawler-bundle
最新稳定版本:0.0.10
Composer 安装命令:
composer require starfruit/crawler-bundle
包简介
Starfruit Crawler Bundle
关键字:
README 文档
README
Starfruit Crawler Bundle
Requirements
Google Cloud
- Create a new project then enable below libraries:
- Create a service account and download JSON credentials file
Installation
composer require starfruit/crawler-bundle
OR
composer require starfruit/crawler-bundle --ignore-platform-req=ext-amqp
- Update
config/bundles.phpfile:
return [ .... Starfruit\CrawlerBundle\StarfruitCrawlerBundle::class => ['all' => true], ];
Setup
- Create a new variable in
.envfile:
# path to file Google Cloud JSON, example:
CRAWLER_BUNDLE_GOOGLE_JSON=/root/project/public/crawler-google-credential.json
- Update
config/config.yamlfile:
imports:
- { resource: 'local/' }
pimcore:
...
...
# config for crawler bundle
starfruit_crawler:
target:
class_object: # list of classname as key, and fields
News: # name of class
content_field: 'content' # field to paste crawled content
last_version_field: 'importUrl' # field to store last version, can be null
Event: # name of class
content_field: 'mainContent'
# custom asset path in Admin to store images, media
asset_store_path: '/default-crawler-media/image'
# custom format for html after crawling
content_format:
heading:
# all default config to mapping headling value to html tag
default: 'p' # default tag
HEADING_1: 'h1'
HEADING_2: 'h2'
HEADING_3: 'h3'
HEADING_4: 'h4'
统计信息
- 总下载量: 128
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-18

