No project description provided
Project description
PyAIL
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyail-0.0.11.tar.gz.
File metadata
- Download URL: pyail-0.0.11.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.12 Linux/6.8.0-87-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b1fe6e783e473404daa46e79e51f61b905d7dfe838d67e1c80603df78a1a05e
|
|
| MD5 |
569c63a89318ca108d45371bc72a85bf
|
|
| BLAKE2b-256 |
e0c48be4058529d738e90906649db9c3a5b97c5b697d9ed527a047d0f236408e
|
File details
Details for the file pyail-0.0.11-py3-none-any.whl.
File metadata
- Download URL: pyail-0.0.11-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.12 Linux/6.8.0-87-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
903b69a0549ca3c0273b4284dd49d55c990718d21d026d5c020e83568f32410e
|
|
| MD5 |
9433e8e70c1083af7f373c0818fb8472
|
|
| BLAKE2b-256 |
987c3dab4013e06e37bc4250326482125f991a75825bc39aea06bea32aee60ce
|