Skip to main content

Python CLI and module for Lookyloo

Project description

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)

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

pylookyloo-1.2.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

pylookyloo-1.2.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file pylookyloo-1.2.1.tar.gz.

File metadata

  • Download URL: pylookyloo-1.2.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.2 Linux/5.4.0-45-generic

File hashes

Hashes for pylookyloo-1.2.1.tar.gz
Algorithm Hash digest
SHA256 2ec63036106c558390f7d02265f7d1368542a060889163ebc775a26d11f26056
MD5 cd049da18d854b0c661054ee304dce36
BLAKE2b-256 84e2f970f7c480fc60b02ebd1c161b2e4c168424550dba9fe243089b56915d2b

See more details on using hashes here.

File details

Details for the file pylookyloo-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: pylookyloo-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.2 Linux/5.4.0-45-generic

File hashes

Hashes for pylookyloo-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec8c2475da12adc83c7c6e41f03de582ace5bb13ed1afcff031367910e81308e
MD5 e1d4426f66b0403bb6eb583ca0939e4e
BLAKE2b-256 17d0054d112f7749abf6ff1ccef21670c341a007fa64b7d2b5f3c8e7d6085136

See more details on using hashes here.

Supported by

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