3pc
Third party web content database
Last updated 5 years ago by macbre .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install 3pc 
SYNC missed versions from official npm registry.

3pc

Third party web content database

What is it?

3pc is meant to be a data-provider of CDN and 3rd party tracking services list.

Inspired by this PerfPlanet article.

Usage

3pc is built as nodejs module:

npm install 3pc

It provides "raw" data and some helper functions:

var thirdParty = require('3pc');

// check if given URL is provided via Content Delivery Network
console.log(thirdParty.cdn.matchByUrl('http://example.com/foo.js'));
false

console.log(thirdParty.cdn.matchByUrl('http://vignette3.wikia.nocookie.net/nordycka/images/e/ee/Tj%C3%B8rnuv%C3%ADk.jpg/revision/latest/scale-to-width-down/640?cb=20150904165805&path-prefix=pl'));
Fastly

// check if given URL is not a tracking code
console.log(thirdParty.trackers.matchByUrl('http://edge.quantserve.com/quant.js'));
Quantcast

Data sources

3pc is currently using the following data sources:

These sources are parsed and the result is stored in ./db directory by running a Python script:

make generate

So this database can be used by any technology that can read and parse JSON-encoded files.

Current Tags

  • 0.1.0                                ...           latest (5 years ago)

1 Versions

  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 3
Last Month 1
Dependencies (0)
None
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |