Giter VIP home page Giter VIP logo

ansible-lookyloo's Introduction

Actions Status - Master Actions Status - Devel

lookyloo ansible role

Setup lookyloo server, a web interface that allows you to capture and map the journey of a website page

Requirements & Dependencies

Ansible

It was tested on the following versions:

  • 2.12

Operating systems

Tested on Ubuntu 20.04, 22.04.

Example Playbook

Just include this role in your list. For example

- host: myhost
  roles:
    - juju4.lookyloo

Variables

TBD

Continuous integration

$ pip install molecule docker
$ molecule test
$ MOLECULE_DISTRO=ubuntu:20.04 molecule test --destroy=never

Troubleshooting & Known issues

  • Log files /var/log/lookyloo_error.log /var/log/lookyloo_message.log

  • Tree page returns blank content and error log has WARNING:Lookyloo:Tree too deep, probably a recursive refresh: maximum recursion depth exceeded while pickling an object. Verify that you don't miss javascript/css files (tools/3rdparty.py)

  • The capture took too long - Timeout 45000ms exceeded.

  • Folder /var/_lookyloo/.cache/ms-playwright contains browser executables. Adapt if /var is mounted with noexec flag.

  • No capture happening? Issue seems to be with splash web capture. Rebuilding docker locally does not seem to help.

$  curl -v 'http://localhost:8050/render.html?url=http://www.google.com&timeout=10'
*   Trying 127.0.0.1:8050...
* Connected to localhost (127.0.0.1) port 8050 (#0)
> GET /render.html?url=http://www.google.com&timeout=10 HTTP/1.1
> Host: localhost:8050
> User-Agent: curl/7.81.0
> Accept: */*
>
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer

But manual capture in WebUI works. Anyway, Lookyloo has switch to its own capture tool playwright since Apr 2022 scrapinghub/splash latest upstream docker is from Aug 2020 and based on Ubuntu 20.04 (bionic) which will be EOL in Apr 2023. Also, considering issue and pull requests, it is uncertain if splash repository is still maintained.

License

BSD 2-clause

ansible-lookyloo's People

Contributors

juju4 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.