1
0
Fork 0
mirror of synced 2026-12-06 18:12:25 +00:00
No description
  • Python 97.6%
  • Dockerfile 2.4%
Find a file
2023-02-07 13:39:07 -05:00
.github/workflows specify coverage xml 2023-02-07 13:35:25 -05:00
examples/flows TikTok.json 2023-02-07 12:32:49 -05:00
src/nefarium new proxy config & using fork 2023-02-05 20:44:05 -05:00
tests new proxy config & using fork 2023-02-05 20:44:05 -05:00
.gitignore Initial Commit 2023-01-27 15:46:07 -05:00
.pre-commit-config.yaml new proxy config & using fork 2023-02-05 20:44:05 -05:00
codecov.yml fix cache & coverage (again) 2023-02-07 13:20:58 -05:00
docker-compose.yml Greatly improved CI 2023-02-05 13:09:22 -05:00
Dockerfile Greatly improved CI 2023-02-05 13:09:22 -05:00
LICENSE Initial Commit 2023-01-27 15:46:07 -05:00
mypy.ini Schemas, Tests, filtering, examples, and more! 2023-02-03 23:54:44 -05:00
poetry.lock coverage 2023-02-07 12:33:08 -05:00
pyproject.toml coverage 2023-02-07 12:33:08 -05:00
pytest.ini Schemas, Tests, filtering, examples, and more! 2023-02-03 23:54:44 -05:00
README.md new tags 2023-02-07 13:39:07 -05:00
tox.ini coverage 2023-02-07 12:33:08 -05:00

nefarium-classic

Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development. wakatime codecov CI status Docker status pre-commit.ci status Discord

nefarium-classic provides an API similar to OAuth for websites that do not support it, letting you authenticate and make your own API middlemen.

nefarium classic uses a proxy-like interface for imitating a website to the user agent. This has a low performance overhead for the user, but a high performance overhead for nefarium. This is why nefarium classic is not recommended for high-traffic websites.

Installation

Docker is the preferred method of installation.

If you would not like to use Docker, you can install the package with poetry and run it in any shell.

poetry install --only main
poetry run nefarium

Configuration

Configuring the backend

Use the docker-compose.yml to configure the nefarium backend on your server.

Environment Variables

Variable Name Description Default
NEFARIUM_HOST The host to bind the HTTP server to. 0.0.0.0
NEFARIUM_PORT The port for the HTTP server to listen to. 8080
NEFARIUM_MONGO_DB The MongoDB database to use for data storage. This is also respected by the configuration CLI. nefarium
NEFARIUM_MONGO_URI The MongoDB database instance URI to connect to and use for data storage. This is respected by the configuration CLI, but manually passing a CLI argument will supercede this setting. mongodb://localhost:27017
NEFARIUM_DEBUG If the DEBUG log level should be used over INFO. Unnecessary in production, but could be handy during setup. Unset (False)
NEFARIUM_PROXY Proxy to send requests data through. Should optimally be some rotating residential proxy like those provided by Smartproxy, or one of your own creation. If a flow specifies a proxy, it will supercede this.
Due to a bug in authcaptureproxy, this may not always be used! Be careful of leaks!
Attempts to read system proxy
NEFARIUM_DISCORD_WEBHOOK A Discord webhook URL to send logging messages to using dislog. Optional. Unset
NEFARIUM_REDIS_URI The Redis URI to use for caching. redis://localhost:6379

Contributing

Setup

First, install the dependencies:

poetry install --no-root --with dev --without test

Second, install the pre-commit hooks:

pre-commit install

Now, you are ready to start contributing! Please fork the repository and make a pull request with your changes.

Testing

To run the tests, use the following command:

poetry run tox

This will run everything, including linters, tests, typing tests, and coverage.