Code Monkey home page Code Monkey logo

visabulletinscraper's Introduction

VisaBulletinScraper is a program that extracts Visa Bulletin information from the Department of State website.

If you are waiting for your green card, using this to get statistics may help you make sound decisions.

stack setup
stack build
stack exec VisaBulletinScraper-exe                          # retrieve all data (will overwrite data files)
stack exec VisaBulletinScraper-exe -- -y 2017 -m october    # retrieve data for a specific year/month and append it to the end of data files

app/Main.hs contains a few options to tweak at the top. Currently this program only extracts employment-based visa information but can be easily adapted to work with other types.

The program will spit out VisaBulletin.csv and VisaBulletinUnpivoted.csv. The latter is good for importing into databases and plotting. I implemented two ways of plotting:

  1. Use Google Charts:

     cd plotting/google-charts/
     ./extract-for-google-charts.pl ../../VisaBulletinUnpivoted.csv > charts.html
    
  2. Use gnuplot and perl:

     cd plotting/gnuplot/
     ./extract-for-gnuplot.pl ../../VisaBulletinUnpivoted.csv
     gnuplot plot-script
    

Green Card Visa Availability - China

./plotting/plot.sh does both for you.

TODO:

  • Plotting using Haskell?
  • Need another scraper for <= Mar 2012.
  • Oct 2012 is skipped - it has an irregular URL.
  • plotting/google-charts/extract-for-google-charts.pl can be improved.

visabulletinscraper's People

Contributors

harryxp avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.