innmind/crawler-app

爬取网络并将图发布到API

1.5.2 2020-10-25 17:28 UTC

This package is auto-updated.

Last update: 2024-08-29 04:42:44 UTC


README

Build Status codecov Type Coverage

这是一个爬取互联网并将资源属性发布到图书馆的应用。

安装

composer install
docker-compose up -d

config/.env.dist 复制到 config/.env 并根据需要调整amqp服务器的url。

使用方法

bin/crawler consume crawler

这将启动一个消费者来读取要爬取的url

bin/console crawl http://the.url/to/crawl https://innmind_library.host/

这将爬取 http://the.url.to/crawl,提取资源属性并将它们发布到图书馆 https://innmind_library.host/。它将自动检测要发布的API资源。