Skip to main content

Python API for AIL

Project description

PyAIL

Python 3.6

PyAIL - Python library using the AIL Rest API

PyAIL is a Python library to access AIL platforms via their REST API.

Install from pip

It is strongly recommended to use a virtual environment

If you want to know more about virtual environments, python has you covered

Install pyail:

pip3 install pyail

Usage

Creating an AIL client

from pyail import PyAIL

ail_url = 'https://localhost:7000'
ail_key = '<AIL API KEY>'
try:
    pyail = PyAIL(ail_url, ail_key, ssl=False)
except Exception as e:
    print(e)
    sys.exit(0)

pyail.ping()

Feeding items to AIL

data = 'my item content'
metadata = {}
source = '<FEEDER NAME>'
source_uuid = '<feeder UUID v4>'

pyail.feed_json_item(data, metadata, source, source_uuid)

Import Crawler capture

pyail.import_crawler_capture(capture={"last_redirected_url": "https://mywebsite.com", "html": "<html><body><h1>HELLO WORLD</h1></body></html>"})

License

This software is licensed under BSD 3-Clause License

Copyright (C) 2020-2025 CIRCL - Computer Incident Response Center Luxembourg

Copyright (C) 2020-2025 Aurelien Thirion

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyail-0.0.15.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyail-0.0.15-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file pyail-0.0.15.tar.gz.

File metadata

  • Download URL: pyail-0.0.15.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.10.12 Linux/6.8.0-111-generic

File hashes

Hashes for pyail-0.0.15.tar.gz
Algorithm Hash digest
SHA256 f329d107b98c87769054f63ea64a0cdd874fb0ca4e3843dda4e676ec7ab498aa
MD5 88f736e3ff76a2cc3350d914379862b7
BLAKE2b-256 3a7bd6dbd17d70898cc9a19c1b0684ece6e4d11af98c38a5068fec0df7ddb677

See more details on using hashes here.

File details

Details for the file pyail-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: pyail-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.10.12 Linux/6.8.0-111-generic

File hashes

Hashes for pyail-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 15f1fc78eb41d5f752b017a8a91d1348846e48b171d645a3fe3ed76b9e16c629
MD5 0bef7a47099766ca4c0f03f12bded8e9
BLAKE2b-256 b1493dd7c0d47bb8170b4a89d7ded578db81ae573736e0b6c5367653c73a6559

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page