Autoseeder
The autoseeder-cli tools allow you to interact easily with the Autoseeder API to submit new URLs and check the status of existing URLs.
Installation
pip install autoseeder-cli
Usage
Please Note: Only Python 3.6+ are officially supported by autoseeder-cli. Python 2.7 has reached EOL and will not be supported.
For each of these tools, before use you should configure the following as environment variables:
AUTOSEEDER_BASE_URL The URL that the Autoseeder service resides at [e.g.: https://your.instance.hostname/autoseeder/] AUTOSEEDER_TOKEN Token to authenticate with - recommended method
Linux/MacOS bash shell:
export AUTOSEEDER_BASE_URL=https://your.instance.hostname/autoseeder/
export AUTOSEEDER_TOKEN='35999b9065…'
Windows Powershell:
$env:AUTOSEEDER_BASE_URL = "https://your.instance.hostname/autoseeder/" $env:AUTOSEEDER_TOKEN = "35999b9065…"
Windows Command Prompt:
set AUTOSEEDER_BASE_URL=https://your.instance.hostname/autoseeder/ set AUTOSEEDER_TOKEN=35999b9065…
Commands available:
autoseeder-cli get_token
Required Environment Variables
AUTOSEEDER_USER
AUTOSEEDER_PASS
AUTOSEEDER_BASE_URL
via CLI
Log in to autoseeder and obtain an API token. Note that if you’ve been supplied with a token string to use already, you do not need to do this.
Linux/MacOS command line:
AUTOSEEDER_USER=josephpilgrim
AUTOSEEDER_PASS=onthetrail
AUTOSEEDER_BASE_URL=https://oregon.usa/autoseeder/
export AUTOSEEDER_TOKEN=$(autoseeder-cli get_token)
via Python lib
import os
import autoseeder_cli
username = os.environ.get('AUTOSEEDER_USER')
password = os.environ.get('AUTOSEEDER_PASS')
base_url = os.environ.get('AUTOSEEDER_BASE_URL')
api = autoseeder_cli.AutoseederTokenGetter(user=username, password=password, base_url=base_url)
print('API token: {}'.format(api.get_token()))
autoseeder-cli submit
Required Environment Variables
AUTOSEEDER_TOKEN
AUTOSEEDER_BASE_URL
via CLI
autoseeder-cli submit <url> [--seed-region=<seed-region>]
Submit a single URL to Autoseeder for seeding. You can optionally select a geographic region to limit seeding activity to.
Arguments: * required * –seed-region=<R1,R2,R3> one or more ISO-3166 two-character country identifier, separated by commas.
Command line:
autoseeder-cli submit https://exampledata.net/ --seed-region=AU,NZ
via Python lib
import os
import autoseeder_cli
token = os.environ.get('AUTOSEEDER_TOKEN')
base_url = os.environ.get('AUTOSEEDER_BASE_URL')
submitter = autoseeder_cli.AutoseederSubmitter(token=token, base_url=base_url)
response = submitter.submit_url('http://example.com', seed_region='AU')
uuid = response.get('uuid')
print('URL trackable via {}'.format(uuid))
autoseeder-cli list
autoseeder-cli list [--limit=<limit>] [--desc]
Required Environment Variables
AUTOSEEDER_TOKEN
AUTOSEEDER_BASE_URL
via CLI
Presents a report of URLs you’ve submitted and their status.
You may find it helpful to filter and format the output with the jq tool.
Linux/MacOS command line:
# show last 100
autoseeder-cli list --limit 100
# filter down with jq
autoseeder-cli list --limit 100 | \
jq '.[] | \
select(.statistics != null) | \
[ .statistics[].canoncical_url, .statistics[].status ]'
Windows command line:
REM show last 100
autoseeder-cli list --limit 100
REM filter down with jq
autoseeder-cli list --limit 100 | jq ".[]| select(.statistics != null)| [.statistics[].canonical_url, .statistics[].status]"
via Python lib
import os
import autoseeder_cli
token = os.environ.get('AUTOSEEDER_TOKEN')
base_url = os.environ.get('AUTOSEEDER_BASE_URL')
lister = autoseeder_cli.AutoseederLister(token=token, base_url=base_url)
urls = lister.get_url_list()
for url in urls:
print(url['url'])
autoseeder-cli find_urls
Required Environment Variables
AUTOSEEDER_TOKEN
AUTOSEEDER_BASE_URL
via CLI
Finds URLs matching a search term, and provides their Universally Unique Identifiers (UUIDs) for further actions (e.g. view).
Command line:
autoseeder-cli find_urls 'example.com'
via Python lib
import os
import autoseeder_cli
token = os.environ.get('AUTOSEEDER_TOKEN')
base_url = os.environ.get('AUTOSEEDER_BASE_URL')
searcher = autoseeder_cli.AutoseederSearcher(token=token, base_url=base_url)
uuids = searcher.find_urls('example.com')
for uuid in uuids:
print(uuid)
autoseeder-cli view
Required Environment Variables
AUTOSEEDER_TOKEN
AUTOSEEDER_BASE_URL
via CLI
Presents a report of a single URL via its associated Universally unique identifier (UUID) or specific URL.
Command line:
# view by URL UUID
autoseeder-cli view 2118f16a-3270-4e63-88dc-24b6097739ab # UUID is sample only
# partial URL string which must match only one registered URL
autoseeder-cli view example.com/myurl
via Python lib
import autoseeder_cli
# 2118f16a-3270-4e63-88dc-24b6097739ab is a SAMPLE ONLY, would map to a seeded URL you previously submitted
viewer = autoseeder_cli.AutoseederURLView(token=token, base_url=myinstance_url)
url_data = viewer.view('2118f16a-3270-4e63-88dc-24b6097739ab')
for url in url_data:
print(url['url'])
autoseeder-cli get_csv
autoseeder-cli get_csv <output_file>
Required Environment Variables
AUTOSEEDER_TOKEN
AUTOSEEDER_BASE_URL
via CLI
Presents a report of URLs you’ve submitted and their status in a CSV representation.
Command line:
autoseeder-cli get_csv autoseeder_latest.csv
autoseeder-cli save_screenshot
Required Environment Variables
AUTOSEEDER_TOKEN
AUTOSEEDER_BASE_URL
via CLI
You probably don’t want to use this - it retrieves a single image (png format), referenced by the screenshot unique identifier.
Command line:
autoseeder-cli save_screenshot 2118f16a-3270-4e63-88dc-24b6097739ab ./example.org/indexpage.png
autoseeder-cli save_screenshots
Required Environment Variables
AUTOSEEDER_TOKEN
AUTOSEEDER_BASE_URL
via CLI
Retrieves a one or more screenshots, referenced by the unique identifier for a URL.
All images will be saved into the specified output path. If the specified path does not already exist a directory will be created.
Command line:
autoseeder-cli save_screenshots 2118f16a-3270-4e63-88dc-24b6097739ab ./example.org/summary_screenshots
autoseeder-cli save_screenshots_all
Warning: Images may contain sensitive information.
Required Environment Variables
AUTOSEEDER_TOKEN
AUTOSEEDER_BASE_URL
Warning: Images may contain sensitive information.
via CLI
Warning: Images may contain sensitive information.
Retrieves a one or more screenshots, referenced by the unique identifier for a URL.
All images will be saved into the specified output path. If the specified path does not already exist a directory will be created.
Warning: Images may contain sensitive information.
Command line:
autoseeder-cli save_screenshots_all 2118f16a-3270-4e63-88dc-24b6097739ab ./example.org/detailed_screenshots
Metadata
Release files for autoseeder-cli 3.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autoseeder_cli-3.1.0-py3-none-any.whl | Python 3 | none | any | Details for autoseeder_cli-3.1.0-py3-none-any.whl |
Release files / autoseeder_cli-3.1.0-py3-none-any.whl
| Download URL | autoseeder_cli-3.1.0-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df5c812b9f6025e8c8e70ed88d74e2dad17ed12e439d8e36728eee28ac91c5c9
|
|
BLAKE2b-256 checksum How to use checksums |
8a2fea105324dc663f4b2d19efd5ec56ecd5255b6800f8efcdf95244a9fd917a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Security for autoseeder-cli 3.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.