Giter Site home page Giter Site logo

va_voter_data_map's Introduction

Prerequisities

To run, need a python3 installation with virtualenv installed on it and found in $PATH.

Phantomjs also needs to be intalled on the host machine, and found in $PATH

for a debian machine:

# apt install virtualenv
# apt install phantomjs

Installation

make build

Run

make scrape

If you have questions email: [email protected]

va_voter_data_map's People

Contributors

bobtinin avatar mjsir911 avatar phufford avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

xee5ch code4nova

va_voter_data_map's Issues

Error Output when tried to install

test -d venv || virtualenv venv --python=python3
/bin/sh: 1: virtualenv: not found
Makefile:16: recipe for target 'venv/bin/activate' failed
make: *** [venv/bin/activate] Error 127

FileNotFoundError : Phantom.js

$ make scrape
venv/bin/python src/metadata_scraper.py
Traceback (most recent call last):
File "/home/dsmall/va_voter_data_map/venv/lib/python3.5/site-packages/selenium/webdriver/common/service.py", line 74, in start
stdout=self.log_file, stderr=self.log_file)
File "/usr/lib/python3.5/subprocess.py", line 947, in init
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'include/phantomjs/phantomjs'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "src/metadata_scraper.py", line 124, in
driver = webdriver.PhantomJS(DRIVER_PATH)
File "/home/dsmall/va_voter_data_map/venv/lib/python3.5/site-packages/selenium/webdriver/phantomjs/webdriver.py", line 52, in init
self.service.start()
File "/home/dsmall/va_voter_data_map/venv/lib/python3.5/site-packages/selenium/webdriver/common/service.py", line 81, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'phantomjs' executable needs to be in PATH.

Makefile:7: recipe for target 'scrape' failed
make: *** [scrape] Error 1

First Page

The scraper skips the first page when going through each year, making it miss out on Presidential Elections and others.

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.