Sign inSign up

liske/solrawler

By liske

Updated about 7 years ago

Simple Python SOLR Web Crawler

Image
0

205

liske/solrawler repository overview

solrawler - Simple Python SOLR Web Crawler

solrawler is a simple python based web crawler for SOLR. It uses the following python packages:

It is designed to be run inside docker. There are two environment variables to configure solrawler:

  • SOLRAWLER_SOLR - the SOLR API url including the core (default: http://solr:8983/solr/solrawler)
  • SOLRAWLER_WAIT - wait time in seconds between crawling runs, used by entrypoint (default: 8400s)

You need to supply spider classes implementation to make the web crawler work:

  • create a empty directory with a emptry __init__.py file
  • add you spider defintion:
import scrapy
from solrawler.common import CommonSpider


class FiaskoSpider(CommonSpider):
    name = 'fiasko'
    allowed_domains = ['fiasko.io']
    start_urls = ['https://fiasko.io/']

Take a look at the supplied docker-compose.yml file howto run solrawler.

Tag summary

Content type

Image

Digest

Size

34.2 MB

Last updated

about 7 years ago

docker pull liske/solrawler