Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.
/ trexa-service Public archive

DEPRECATED - Code that powers the Trexa List download service

License

Notifications You must be signed in to change notification settings

mozilla/trexa-service

Repository files navigation

Trexa Service

This project aims to provide a weekly Trexa 100k list, which is created from the Tranco and Alexa lists. In theory it could be larger, so file an issue if that's useful to someone.

Running locally

  1. clone the repo
  2. run cd trexa-service
  3. run python3 -m venv env
  4. run source env/bin/activate
  5. run pip3 install -r requirements.txt

And then go to the next section to run tests or start the service.

Running the tests

FLASK_ENV=development pytest

Starting the service

From the project root:

Production mode: FLASK_APP=trexa flask run --host=0.0.0.0

or

Development mode: FLASK_ENV=development FLASK_APP=trexa flask run

Environment variables

The following environment variables can be defined to override defaults:

ZIP_DOWNLOADS_DEST
CSV_DOWNLOADS_DEST
FINAL_LIST_DEST

HTTP Endpoints

This app exposes the following HTTP endpoints

  • /lists: see all lists available for download
  • /lists/trexa-2020-05-21.csv: download a full, single list (150,000+ sites)
  • /api/lists/2020-05-21?count=N: download a single list, trimmed to N sites

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/

Code of Conduct

This project and repository is governed by Mozilla's code of conduct and etiquette guidelines. For more details please see the Code of Conduct file.

About

DEPRECATED - Code that powers the Trexa List download service

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published