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 a 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)

To retrieve the statistiques(json)

    capture = lookyloo.get_stats()

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.6.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

pylookyloo-1.2.6-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylookyloo-1.2.6.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.8.0-26-generic

File hashes

Hashes for pylookyloo-1.2.6.tar.gz
Algorithm Hash digest
SHA256 39f1d450c515238f2b68723a9ff9922a1e2b2be2451e7270cbbffc2ad98e8244
MD5 85e4dce2c3d1058262dd795150e23ef4
BLAKE2b-256 62767be3dcf2ba81c015fdb3e07ac470f25d186976aedd123286b4493c227505

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylookyloo-1.2.6-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.8.0-26-generic

File hashes

Hashes for pylookyloo-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0af17024eab09aa2146c731992e1632276780b4645abfcc6a8d7417c20bf14f9
MD5 88afe83f8f111c5856f6413e5397d6f3
BLAKE2b-256 8bebcb526a68b2bb446f9196dcf36d47f8adbeac0eed019bdb1e61c1c0f9d3ff

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