diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-15 13:11:52 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-15 13:15:15 -0800 |
commit | bb28a3fc1cc900f2dde31e1dbc492d9661034f41 (patch) | |
tree | f037dd3d1bab6cbf08a562dbdd4c09361fe0c030 /python/fatcat_export.py | |
parent | 9f817c6c70a749f2ac449ab4edfd26c6dd8a7410 (diff) | |
download | fatcat-bb28a3fc1cc900f2dde31e1dbc492d9661034f41.tar.gz fatcat-bb28a3fc1cc900f2dde31e1dbc492d9661034f41.zip |
large refactor of python names/paths
- Add __init__.py files for fatcat_tools submodules, and use them in
imports
- Add a bunch of comments to files.
- rename a number of classes and functions to be less verbose
Diffstat (limited to 'python/fatcat_export.py')
-rwxr-xr-x | python/fatcat_export.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/python/fatcat_export.py b/python/fatcat_export.py index eadf69ab..60c1caf1 100755 --- a/python/fatcat_export.py +++ b/python/fatcat_export.py @@ -1,11 +1,18 @@ #!/usr/bin/env python3 +""" +Note: this is *not* the tool used to generate "official" metadata dumps; that +tool is written in rust and runs on the production infrastructure for speed. +These scripts are just a demonstration of how the API *could* be scraped +without permission by an third party. +""" + import sys import json import argparse import fatcat_client from fatcat_client.rest import ApiException -from fatcat_tools.fcid import uuid2fcid +from fatcat_tools import uuid2fcid def run_export_releases(args): conf = fatcat_client.Configuration() |