lookyloo/client
Raphaël Vinot d8ac3a6900 chg: Bump version 2020-07-23 16:10:54 +02:00
..
pylookyloo new: Add calls to get screenshot, html, cookies, and complete capture. 2020-06-29 19:02:57 +02:00
README.md Update readme with the API change 2020-06-30 15:46:50 +02:00
poetry.lock chg: Bump deps 2020-07-23 15:29:49 +02:00
pyproject.toml chg: Bump version 2020-07-23 16:10:54 +02:00
setup.py chg: Cleanup deps, use tagged versions 2020-06-10 18:41:03 +02:00

README.md

PyLookyloo

This is the client API for Lookyloo.

Installation

pip install pylookyloo

Usage

  • You can use the lookyloo command to enqueue an URL.
usage: lookyloo [-h] [--url URL] --query QUERY

Enqueue a URL on Lookyloo.

optional arguments:
  -h, --help     show this help message and exit
  --url URL      URL of the instance (defaults to https://lookyloo.circl.lu/,
                 the public instance).
  --query QUERY  URL to enqueue.
  --listing      Should the report be publicly listed.
  --redirects    Get redirects for a given capture.

The response is the permanent URL where you can see the result of the capture.
  • Or as a library

from pylookyloo import Lookyloo

lookyloo = Lookyloo('https://url.of.lookyloo.instance')
if lookyloo.is_up:  # to make sure it is up and reachable
	permaurl = lookyloo.enqueue('http://url.to.lookup')

You can add the following paramaters to the enqueue fuction:

    quiet      Return only the uuid
    listing    Should the report be publicly listed.
    user_agent Set your own user agent
    Depth      Set the analysis depth. Can not be more than in config

To retrieve the redirects (json)

    redirect = lookyloo.get_redirects(uuid)

To retrieve the cookies (json)

    cookies = lookyloo.get_cookies(uuid)

To retrieve the screenshot (raw)

    screen = lookyloo.get_screenshot(uuid)

To retrieve the html (raw)

    html = lookyloo.get_html(uuid)

To retrieve the complete capture(raw)

    capture = lookyloo.get_complete_capture(uuid)