Git Product home page Git Product logo

kpurawler's Introduction

kpurawler

Crawl KPU track record data. Features:

  1. Automatically download pdf for all candidates in your Dapil
  2. Skip zero bytes pdf file

Ideas? Please submit issues.

Known issues

  1. Does not check whether pdf file is corrupt or not
  2. DPD is not supported yet, as the page layout is totally different

How to use

Note: This is still MVP, so manual works needed

  1. Clone this repo
  2. Change dapil_id value based on your own dapil, see
  3. Run scrapy runspider kpurawler.py

How to find dapil id

The number highlighted by red circle on the url is what we are looking for. alt text Here's one way that I find works

  1. Go to KPU official site
  2. Click Jenis Pemilihan on the header
  3. Click Pileg 2019 on the dropdown
  4. Click Daerah Pemilihan on the header, you'll see a map of Indonesia
  5. Choose the option, eg. DPRD Kabko, Jawa Barat, Cianjur, you'll see another pop up on the right side
  6. Click your Dapil, and you should be redirected to page illustrated

Prerequisite to use

  1. Scrapy installed. See How to install Scrapy

kpurawler's People

Contributors

rendybjunior avatar

Stargazers

Anugrah Y. Pranata avatar Ahmad Anshorimuslim Syuhada avatar

Watchers

James Cloos avatar

kpurawler's Issues

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.