Skip to content

ail-project/PyAIL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

40 Commits

Repository files navigation

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

frompyailimportPyAILail_url='https://localhost:7000'ail_key='<AIL API KEY>'try: pyail=PyAIL(ail_url, ail_key, ssl=False) exceptExceptionase: 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

About

Python library using the AIL Rest API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages