detect-bat-publishers
Tool to detect Brave Browser publishers
Last updated 2 years ago by maxencec .
ISC · Original npm · Tarball · package.json
$ cnpm install detect-bat-publishers 
SYNC missed versions from official npm registry.

detect-bat-publishers

A npm package used to detect Brave Browser / Basic Attention Token publishers using 3 different methods:

  • Brave API call (the most reliable way)
  • DNS lookup
  • Fetching brave-payments-verification.txt

The package is used to build the list of Brave Bowser publishers on https://batgrowth.com/publishers

It was inspired by the following gist: https://gist.github.com/da2x/6e2ef4a30f476f8aec4aca7bbadbc772

You can Download, unzip and parse to JSON the Alexa Top 1 Million websites .csv in order to have a decent data sample to try this package on: http://s3.amazonaws.com/alexa-static/top-1m.csv.zip

Installation

This module is installed via npm:

npm i detect-bat-publishers

Usage


let check = require('detect-bat-publishers');

// Return a promise with true/false
// Use a DNS lookup
check.isWebsiteVerifiedByDnsRecord('batgrowth.com')

// Return a promise with true/false
// Fetch brave-payments-verification.txt
check.isWebsiteVerifiedByTxtVerificationFile('batgrowth.com')

// Return a promise with true/false
// Use Brave official API (recommended)
check.isWebsiteVerifiedByBraveApiCall('batgrowth.com')

Current Tags

  • 0.0.4                                ...           latest (2 years ago)

5 Versions

  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |