evilcel3ri / paste-scrape

Pastebin scraper written in go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PasteScrape

Pastebin scraper written in go, which logs into an elasticsearch backend.

The paste key is used as identifier and pastes are fetched only once.

Pastebin Scraping API

In order to use the pastebin scraping API you will require a pastebin pro account, see https://pastebin.com/pro.

Usage

Usage of ./paste-scrape:
  -index string
        pastebin (default "pastebin")
  -url string
        elastic search api url (default "http://localhost:9200")

Misc

The program may take up to 40 seconds to shutdown after SIGINT (Ctrl + C).

TODO

  • more test coverage
  • use httptest for tests
  • adaptive polling
  • more output modules (csv, json)

About

Pastebin scraper written in go

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%