<commit_before>ACTION NXTBUS Example
====================

A very basic example for getting started with ACTION's NXTBUS API in Python. See ACTION's information at https://www.action.act.gov.au/rider_Info/apps

Getting started
---------------
1. Clone repository
2. Apply to ACTION for a [NXTBUS API key](https://www.action.act.gov.au/rider_Info/apps/nxtbus-data-feed-registration-form). You will receive an email that includes a key along with formal API documentation. Replace APIKEY in ``main.py`` with this key. 
3. Install Python requirements with Pip.
	
  For Python 2.*:
  `pip install tornado xmltodict dicttoxml `
  
  For Python 3.*:
  `pip3 install tornado xmltodict dicttoxml `
  
4. Run (compatible with Python 2.* and 3.*)

	``python main.py``<commit_msg>Updated links to the new Transport for Canberra website<commit_after>ACTION NXTBUS Example
====================

A very basic example for getting started with ACTION's NXTBUS API in Python. See ACTION's information at [transport.act.gov.au/getting-around/bus-services/mobile-apps](https://www.transport.act.gov.au/getting-around/bus-services/mobile-apps)

Getting started
---------------
1. Clone repository
2. Apply to ACTION for a [NXTBUS API key](https://www.transport.act.gov.au/getting-around/bus-services/mobile-apps/nxtbus-data-feed-registration-form). You will receive an email that includes a key along with formal API documentation. Replace APIKEY in ``main.py`` with this key. 
3. Install Python requirements with Pip.
	
  For Python 2.*:
  `pip install tornado xmltodict dicttoxml `
  
  For Python 3.*:
  `pip3 install tornado xmltodict dicttoxml `
  
4. Run (compatible with Python 2.* and 3.*)

	``python main.py``
{'fraction_non_alphanumeric': 0.13250883392226148, 'fraction_numerical': 0.01060070671378092, 'mean_word_length': 3.8267045454545454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5226908', 'n_tokens_mistral': 526, 'n_tokens_neox': 494, 'n_words': 183}