|Raphaël Vinot dd3674c195||17 hours ago|
|.github||1 month ago|
|bin||2 days ago|
|cache||1 year ago|
|config||3 days ago|
|contributing||1 month ago|
|doc||1 month ago|
|etc||5 months ago|
|indexing||1 month ago|
|known_content||1 week ago|
|known_content_user||3 weeks ago|
|lookyloo||17 hours ago|
|tools||3 days ago|
|user_agents||3 days ago|
|website||2 days ago|
|.dockerignore||2 months ago|
|.gitignore||3 weeks ago|
|.travis.yml||5 months ago|
|Dockerfile||2 weeks ago|
|LICENSE||3 months ago|
|README.md||3 months ago|
|SECURITY.md||3 months ago|
|code_of_conduct.md||1 month ago|
|docker-compose.yml||2 months ago|
|poetry.lock||17 hours ago|
|pyproject.toml||17 hours ago|
|setup.py||2 months ago|
Lookyloo is a web interface allowing to scrape a website and then displays a tree of domains calling each other.
Thank you very much Tech Blog @ willshouse.com for the up-to-date list of UserAgents.
1. People who just come to look. 2. People who go out of their way to look at people or something often causing crowds and more disruption. 3. People who enjoy staring at watching other peoples misfortune. Oftentimes car onlookers to car accidents. Same as Looky Lou; often spelled as Looky-loo (hyphen) or lookylou In L.A. usually the lookyloo's cause more accidents by not paying full attention to what is ahead of them.
Source: Urban Dictionary
This code is very heavily inspired by webplugin and adapted to use flask as backend.
The two core dependencies of this project are the following:
If you want to scrape a website as if you were loggged in, you need to pass your sessions cookies. You can do it the the folloing way:
Then, you need to restart the webserver and from now on, every cookies you have in that file will be available for the browser used by Splash
You can use
pylookyloo as a standalone script, or as a library, more details here
IMPORTANT: Use poetry
NOTE: Yes, it requires python3.7+. No, it will never support anything older.
NOTE: If you want to run a public instance, you should set
bin/async_scrape.py to disallow scraping of private IPs.
You need a running splash instance, preferably on docker
sudo apt install docker.io sudo docker pull scrapinghub/splash sudo docker run -p 8050:8050 -p 5023:5023 scrapinghub/splash --disable-browser-caches # On a server with a decent abount of RAM, you may want to run it this way: # sudo docker run -p 8050:8050 -p 5023:5023 scrapinghub/splash -s 100 -m 50000 --disable-browser-caches
git clone https://github.com/antirez/redis.git cd redis git checkout 5.0 make cd ..
git clone https://github.com/Lookyloo/lookyloo.git cd lookyloo poetry install echo LOOKYLOO_HOME="'`pwd`'" > .env
poetry run start.py
pip install uwsgi
You have to configure the two following files:
Copy them to the appropriate directories, and run the following command:
sudo ln -s /etc/nginx/sites-available/lookyloo /etc/nginx/sites-enabled
If needed, remove the default site
sudo rm /etc/nginx/sites-enabled/default
Make sure everything is working:
sudo systemctl start lookyloo sudo systemctl enable lookyloo sudo nginx -t # If it is cool: sudo service nginx restart
And you can open
Now, you should configure TLS (let's encrypt and so on)
Aquarium is a haproxy + splash bundle that will allow lookyloo to be used by more than one user at once.
Follow the documentation if you want to use it.
The repository includes a Dockerfile for building a containerized instance of the app.
Lookyloo stores the scraped data in /lookyloo/scraped. If you want to persist the scraped data between runs it is sufficient to define a volume for this directory.
Additionally you can start a complete setup, including the necessary Docker instance of splashy, by using Docker Compose and the included service definition in docker-compose.yml by running
After building and startup is complete lookyloo should be available at http://localhost:5000/
If you want to persist the data between different runs uncomment the “volumes” definition in the last two lines of docker-compose.yml and define a data storage directory in your Docker host system there.