Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install busscraper

How to install BusScraper

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install busscraper
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.2 Available View build log
0.2.1 Available View build log
0.1.3 Available View build log
0.1.2 Available View build log
Windows (64-bit)
0.2.2 Available View build log
0.2.1 Available View build log
0.1.3 Available View build log
0.1.2 Available View build log
Mac OS X (10.5+)
0.2.2 Available View build log
0.2.1 Available View build log
0.1.3 Available View build log
0.1.2 Available View build log
Linux (32-bit)
0.2.2 Available View build log
0.2.1 Available View build log
0.1.3 Available View build log
0.1.2 Available View build log
Linux (64-bit)
0.2.2 Available View build log
0.2.1 Available View build log
0.1.3 Available View build log
0.1.2 Available View build log
 
Author
License
LICENSE.txt
Lastest release
version 0.2.2 on Feb 13th, 2012

Bus Scraper allows you to scrape bus times and information from ACIS powered bus time sites (like the Oxfordshire, South Yorkshire, Bristol, and Kent ones). If they change the markup of their pages, it might break.

#!/usr/bin/env python

import busscraper

busscraper.stop("37035419", "tsy")
[{'minutes_to_departure': 0, 'destination': u'Rotherham ', 'service': u'220 '}, {'minutes_to_departure': 30, 'destination': u'Doncaster ', 'service': u'222 '}, {'minutes_to_departure': 30, 'destination': u'Rotherham ', 'service': u'220 '}, {'minutes_to_departure': 0, 'destination': u'Rotherham ', 'service': u'229 '}]
busscraper.postcode("s637tg", "tsy")
[{'distance': 107, 'stop_name': u'Pope Pius School', 'stop_id': u'37035419'}, {'distance': 168, 'stop_name': u'Pope Pius School', 'stop_id': u'37035385'}]
busscraper.service("2", "5", "Blackbird+Leys", "oxfordshire", "35")
[{'stop_name': u'Oxford Rail Stn R2', 'stop_id': u'69326565&pscode=5&dest=&textonly=1'}, {'stop_name': u'Frideswide Sq R7', 'stop_id': u'340002070R7&pscode=5&dest=&textonly=1'}, {'stop_name': u'New Road D1', 'stop_id': u'340000868D1&pscode=5&dest=&textonly=1'}, {'stop_name': u'Castle Street M1', 'stop_id': u'340000007M1&pscode=5&dest=&textonly=1'}, {'stop_name': u'Speedwell St S2', 'stop_id': u'340001989S2&pscode=5&dest=&textonly=1'}, {'stop_name': u"St Aldate's G4", 'stop_id': u'69326475&pscode=5&dest=&textonly=1'}, {'stop_name': u"Queen's Lane K1", 'stop_id': u'340001992K1&pscode=5&dest=&textonly=1'}, {'stop_name': u'The Plain', 'stop_id': u'340001126TYN&pscode=5&dest=&textonly=1'}, {'stop_name': u'James Street', 'stop_id': u'340001199PEM&pscode=5&dest=&textonly=1'}, {'stop_name': u'Manzil Way', 'stop_id': u'340001198OUT&pscode=5&dest=&textonly=1'}, {'stop_name': u'Magdalen Road', 'stop_id': u'340001195OPP&pscode=5&dest=&textonly=1'}, {'stop_name': u'Howard Street', 'stop_id': u'340001197CNR&pscode=5&dest=&textonly=1'}, {'stop_name': u'Shelley Road', 'stop_id': u'69323639&pscode=5&dest=&textonly=1'}, {'stop_name': u'Marsh Road', 'stop_id': u'340001200OPH&pscode=5&dest=&textonly=1'}, {'stop_name': u'Clive Road', 'stop_id': u'340001201OPP&pscode=5&dest=&textonly=1'}, {'stop_name': u'Original Swan PH', 'stop_id': u'340001257BTW&pscode=5&dest=&textonly=1'}, {'stop_name': u'Templars Square', 'stop_id': u'69324978&pscode=5&dest=&textonly=1'}, {'stop_name': u'Barns Road', 'stop_id': u'340001251OPB&pscode=5&dest=&textonly=1'}, {'stop_name': u'Kersington Crescent', 'stop_id': u'340001225CNR&pscode=5&dest=&textonly=1'}, {'stop_name': u'Sandy Lane West', 'stop_id': u'340001230ERB&pscode=5&dest=&textonly=1'}, {'stop_name': u'Sandy Lane', 'stop_id': u'69325292&pscode=5&dest=&textonly=1'}, {'stop_name': u'Wingate Close', 'stop_id': u'340001234CNR&pscode=5&dest=&textonly=1'}, {'stop_name': u'Longlands Road', 'stop_id': u'340001229CNR&pscode=5&dest=&textonly=1'}, {'stop_name': u'Pegasus Court', 'stop_id': u'69325284&pscode=5&dest=&textonly=1'}]

Subscribe to package updates

Last updated Feb 13th, 2012

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.