redisstorage

Redis based storage backend for Colly

  • Owner: gocolly/redisstorage
  • Platform:
  • License:: Apache License 2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Redis Storage for Colly

This is a redis based storage backend for Colly collectors.

GoDoc

Install

go get -u github.com/gocolly/redisstorage

Usage

import (
	"github.com/gocolly/colly"
	"github.com/gocolly/redisstorage"
)
c := colly.NewCollector()

storage := &redisstorage.Storage{
    Address:  "127.0.0.1:6379",
    Password: "",
    DB:       0,
    Prefix:   "job01",
}

err := c.SetStorage(storage)
if err != nil {
    panic(err)
}

Bugs

Bugs or suggestions? Visit the issue tracker or join #colly on freenode

Main metrics

Overview
Name With Ownergocolly/redisstorage
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:Apache License 2.0
所有者活动
Created At2018-02-09 23:00:35
Pushed At2022-10-21 14:22:24
Last Commit At2019-08-12 13:28:00
Release Count0
用户参与
Stargazers Count35
Watchers Count5
Fork Count12
Commits Count17
Has Issues Enabled
Issues Count3
Issue Open Count3
Pull Requests Count2
Pull Requests Open Count2
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private