Git Product home page Git Product logo

bisweb_scraper's Introduction

BIS Web Scraper

bisweb.py is a simple script that scrapes the NYC Department of Buildings (DOB) online Building Information System (BIS Web), and returns Buildings Identification Numbers (BINs) from an inputted Pandas DataFrame containing BBLs.

The reason one might want to use this script rather than the Geoclient API is that BIS Web returns BINs for "transitional" buildings, whereas as far as I can tell, there is no easy way in Python to batch query the Geoclient API for transitional BINs. (Curiously, however, the Department of City Planning (DCP) returns transitional BINs on its Geographic Online Address Translator (GOAT)).

I should note that BIS Web is a notoriously unreliable site, and can occasionally take some time to load its content. While this scraper should usually run quite quickly, there will be some times where you might have to wait a few minutes depending on the size of your DataFrame.

I should also note that while this script only returns BINs, it can easily be modified to return anything displayed on the BIS Web front-end.

This script requires the BeautifulSoup package, which you can install with pip install bs4

bisweb_example.ipynb shows an example of how to use the bisweb.py script.

bisweb_scraper's People

Contributors

ortrune 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.