proxy-fingerprint-scraper

command module
v0.0.0-...-17cc08b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 17 Imported by: 0

README

Fingerprint Scraper

A scraper that loads fingerprints from Discord's /experiments endpoint via proxies. Allows for proxy IPs and user agents to be loaded from a file (or a custom source, see proxy/{ip,ua}/source.go).

Once fetched, it stores them to a PostgreSQL database, and they can be read via the API.

Running & Building

To build the program:

$ git clone https://github.com/getaddrinfo/proxy-fingerprint-scraper.git
$ cd proxy-fingerprint-scraper
$ DB_STRING=... # set an environment variable for convenience

$ GOOSE_DRIVER=postgres GOOSE_DBSTRING=$DB_STRING goose -dir ./migrate up # brings migrations up to date - make sure goose is installed (see https://github.com/pressly/goose)
$ go build -o scraper
$ ./scraper -help # to see arguments
$ DATABASE_URL=$DB_STRING ./scraper -fingerprints -workers 10

Documentation

Some simple documentation regarding the API is accessible under / - to access it, follow the steps below:

$ psql -h localhost -p 5432 -U <user>
# ...
# \c <db>
# UPDATE auth SET token = '...' WHERE id = 0; -- set your token to a value that is 32 characters long
$ curl http://localhost:48832/?token=...

TODO

  • Docker containerization
  • Better Admin UX

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
ip
ua

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL