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
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
pylookyloo-1.2.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for pylookyloo-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4745f88afc58938af1b98d9c86d30831f1f6c7271820c232681fe1385d7b6470 |
|
MD5 | 432a34b34e2c0495a56875b49fb9b9a0 |
|
BLAKE2b-256 | 015f49836126241a56621961ce5a585ba7ce457faa4f96e46fe5e7f346a92c44 |