Skip to content

justgrimes/WMATA-SmarTrip-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

WMATA SmarTrip Usage Python Screen Scraper

Written by Justin Grimes (@justgrimes) & Josh Tauberer (@joshdata)

Simple python script that scrapes a SmarTrip user's transit usage data from WMATA website (http://smartrip.wmata.com)
Script authenticates into WMATA website using Mechanize library and then extracts data from HTML tables using Beautiful Soup library then writes lovely clean CSV files. Feel free to use; I claim nothing; To map returned WMATA station "short names" to proper full name to get latitude and longitude use this crosswalk:
https://docs.google.com/spreadsheet/ccc?key=0AvcRuGkEq26jdEFLbGVlTjdJdmRnUXBBTHVOUmg0eEE&usp=sharing

About

WMATA SmarTrip Usage Scrapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages