Skip to content

Instantly share code, notes, and snippets.

@qknight
Created October 24, 2016 15:57
Show Gist options
  • Select an option

  • Save qknight/d26a789089845bac08dcead4e20dcec8 to your computer and use it in GitHub Desktop.

Select an option

Save qknight/d26a789089845bac08dcead4e20dcec8 to your computer and use it in GitHub Desktop.
=========== collect_data.py =============
#! /usr/bin/env nix-shell
#! nix-shell collect_data-environment.nix --command 'python3 collect_data.py'
here is python code
=========== default.nix ==============
with import <nixpkgs> { };
let
pkgs1 = import (pkgs.fetchFromGitHub {
owner = "qknight";
repo = "nixpkgs";
rev = "a1dd8b2a5b035b758f23584dbf212dfbf3bff67d";
sha256 = "1zn9znsjg6hw99mshs0yjpcnh9cf2h0y5fw37hj6pfzvvxfrfp9j";
}) {};
in
pkgs1.python3Packages.buildPythonPackage rec {
name = "crawler";
version = "0.0.1";
buildInputs = [ pkgs.firefox ];
propagatedBuildInputs = with pkgs1.python3Packages; [
virtual-display selenium
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment