cognivore / perplex

Chromedriver, selenium, xvfb setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Perplex

image

A template to bootstrap Selenium scraping with Nix.

Installation

If you have nix and direnv, then just direnv allow.

Installing nix and direnv

Luckily for you, we have a single-click installer for nix, direnv and home-manager.

Running

./demo.py should just work. If it doesn't, try xvfb-run ./demo.py. This one will work for sure, even on a server without a real X framebuffer!

Open questions

  • Can we use which instead of nix store lookup to find chromedriver and chromium?

About

Chromedriver, selenium, xvfb setup


Languages

Language:Python 66.2%Language:Nix 33.8%