Skip to content

Instantly share code, notes, and snippets.

@thekensta
Last active October 30, 2017 10:44
Show Gist options
  • Save thekensta/6d448640114d81c70e3e066245017cfa to your computer and use it in GitHub Desktop.
Save thekensta/6d448640114d81c70e3e066245017cfa to your computer and use it in GitHub Desktop.
Get Network Status for a Post Code
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 45,
"metadata": {},
"outputs": [],
"source": [
"# \n",
"#postcode = 'GL67QX'\n",
"postcode='GL115AX'\n",
"postcode = 'GL67NY'\n",
"url = 'https://www.gigaclear.com/wp-content/themes/gigaclear/gigameter.php?pc=' + postcode"
]
},
{
"cell_type": "code",
"execution_count": 46,
"metadata": {},
"outputs": [],
"source": [
"resp = requests.get(url)"
]
},
{
"cell_type": "code",
"execution_count": 47,
"metadata": {},
"outputs": [],
"source": [
"data = resp.json()\n",
"communities = data['communities'].keys()"
]
},
{
"cell_type": "code",
"execution_count": 48,
"metadata": {},
"outputs": [],
"source": [
"projected_dates = [u'PROJECTED_Cabinet_Live_Date__c', u'PROJECTED_Completion_Date__c',\n",
" u'PROJECTED_First_Customer_Live_Date__c', u'PROJECTED_Start_Build_Date__c']"
]
},
{
"cell_type": "code",
"execution_count": 49,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"PROJECTED_Cabinet_Live_Date__c 2017-03-10\n",
"PROJECTED_Completion_Date__c 2017-09-30\n",
"PROJECTED_First_Customer_Live_Date__c 2017-03-31\n",
"PROJECTED_Start_Build_Date__c 2016-09-05\n"
]
}
],
"source": [
"for comm in communities:\n",
" for pd in projected_dates:\n",
" print pd, data['communities'][comm].get(pd)"
]
},
{
"cell_type": "code",
"execution_count": 50,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{u'Cabinet_Status__c': u'Live - ALL',\n",
" u'Histories': {u'done': True,\n",
" u'queryLocator': None,\n",
" u'records': [{u'CreatedDate': u'2016-08-31T13:08:47.000Z',\n",
" u'Id': None,\n",
" u'NewValue': u'Start Date Settled',\n",
" u'OldValue': u'Taking Orders'},\n",
" {u'CreatedDate': u'2016-04-13T16:13:07.000Z',\n",
" u'Id': None,\n",
" u'NewValue': u'Taking Orders',\n",
" u'OldValue': u'Qualifying'},\n",
" {u'CreatedDate': u'2017-10-02T10:24:20.000Z',\n",
" u'Id': None,\n",
" u'NewValue': u'Maintenance',\n",
" u'OldValue': u'Delivery'},\n",
" {u'CreatedDate': u'2017-07-11T06:30:18.000Z',\n",
" u'Id': None,\n",
" u'NewValue': u'Delivery',\n",
" u'OldValue': u'Installing'},\n",
" {u'CreatedDate': u'2017-03-15T10:11:17.000Z',\n",
" u'Id': None,\n",
" u'NewValue': u'Installing',\n",
" u'OldValue': u'Start Date Settled'}],\n",
" u'size': 5},\n",
" u'Id': u'a032000000QGMxQAAX',\n",
" u'Name': u'Far Oakridge',\n",
" u'Name_Display__c': u'Far Oakridge',\n",
" u'PROJECTED_Cabinet_Live_Date__c': u'2017-03-10',\n",
" u'PROJECTED_Completion_Date__c': u'2017-09-30',\n",
" u'PROJECTED_First_Customer_Live_Date__c': u'2017-03-31',\n",
" u'PROJECTED_Start_Build_Date__c': u'2016-09-05',\n",
" u'Percentage_of_Target__c': 99.77,\n",
" u'Status__c': u'Maintenance',\n",
" u'accounts': {u'0012000001Zus0xAAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus0xAAB',\n",
" u'Latitude': 51.73157,\n",
" u'Longitude': -2.12248,\n",
" u'Name': u'Blandfords Cottage Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'CFb599ATXpPSRIiNTQ5MIYJjn3ULvSeRPUefX9dHQ-I9eAwlVgdnboVsxfwewiID',\n",
" u'X_Coordinate__c': u'391637.53',\n",
" u'Y_Coordinate__c': u'203657.15',\n",
" u'campaignid': None},\n",
" u'0012000001Zus0yAAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus0yAAB',\n",
" u'Latitude': 51.73141,\n",
" u'Longitude': -2.12364,\n",
" u'Name': u'Cave Cottage Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'sPbGVjqM2Q-O4MzMjzGI3_-NnsO_Vx9u94im9icfd6K_RWArE-i6AqJIXqGcbTim',\n",
" u'X_Coordinate__c': u'391558',\n",
" u'Y_Coordinate__c': u'203640',\n",
" u'campaignid': None},\n",
" u'0012000001Zus16AAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus16AAB',\n",
" u'Latitude': 51.73171,\n",
" u'Longitude': -2.12293,\n",
" u'Name': u'The Mount Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'yRVYmgwCnxQwi7ScuHATKoi1JIqS0pcz6NlUHPsvvAjzs7LAluLite0CF0hS_RSX',\n",
" u'X_Coordinate__c': u'391607',\n",
" u'Y_Coordinate__c': u'203673',\n",
" u'campaignid': None},\n",
" u'0012000001Zus17AAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus17AAB',\n",
" u'Latitude': 51.73142,\n",
" u'Longitude': -2.1229,\n",
" u'Name': u'The Venture Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'S9ghIbUcQrPsNGQ_O8fIPwMYZPQu3JJTgy1eq8Z0L6-Xbck9Ku1CwJm62NEuSGy0',\n",
" u'X_Coordinate__c': u'391609',\n",
" u'Y_Coordinate__c': u'203641',\n",
" u'campaignid': None},\n",
" u'0012000001Zus27AAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus27AAB',\n",
" u'Latitude': 51.73054,\n",
" u'Longitude': -2.12441,\n",
" u'Name': u'Pipers Cottage Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'nZY1XcwgBTETApH-0QVJNIJNcQRYgY3yKHDqW7Gu7R3x_TKrXuH_G6IOwtma35Rj',\n",
" u'X_Coordinate__c': u'391505.28',\n",
" u'Y_Coordinate__c': u'203542.72',\n",
" u'campaignid': None},\n",
" u'0012000001Zus2JAAR': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus2JAAR',\n",
" u'Latitude': 51.73109,\n",
" u'Longitude': -2.12344,\n",
" u'Name': u'Tralee Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'nr4IaXIuSFF4LA7EPtlf_ku-1HZ0_EQuGzgACXsptcO1SiGnO4Hqn-PMLaUrk9WU',\n",
" u'X_Coordinate__c': u'391572',\n",
" u'Y_Coordinate__c': u'203604',\n",
" u'campaignid': None},\n",
" u'0012000001Zus2NAAR': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus2NAAR',\n",
" u'Latitude': 51.73082,\n",
" u'Longitude': -2.12008,\n",
" u'Name': u'Highwood House Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'unTru9VVhXeHZHJWUHDDUdYX-UxVWSm493BwyEhAINNRGJz6TFjNu4-2MukpBSmk',\n",
" u'X_Coordinate__c': u'391804',\n",
" u'Y_Coordinate__c': u'203574',\n",
" u'campaignid': None},\n",
" u'0012000001Zus2eAAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus2eAAB',\n",
" u'Latitude': 51.73098,\n",
" u'Longitude': -2.12202,\n",
" u'Name': u'Edgehill The Broadway Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'E3bhwNciuG6viSZdEfhOTH4JFziLe4i6ENAn_LJZzH0xW4pqE0agn9ZP81rxeRqv',\n",
" u'X_Coordinate__c': u'391670',\n",
" u'Y_Coordinate__c': u'203592',\n",
" u'campaignid': None},\n",
" u'0012000001Zus2uAAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus2uAAB',\n",
" u'Latitude': 51.73064,\n",
" u'Longitude': -2.1204,\n",
" u'Name': u'Woodside The Broadway Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'FMUexgqo2U7RhMha-2PmpTCbXNXn_59D0HyHCZEDn349A9enUd_JryHw-1SJP1Sg',\n",
" u'X_Coordinate__c': u'391782',\n",
" u'Y_Coordinate__c': u'203554',\n",
" u'campaignid': None},\n",
" u'0012000001Zus30AAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus30AAB',\n",
" u'Latitude': 51.73042,\n",
" u'Longitude': -2.12032,\n",
" u'Name': u'Woodside Cottage The Broadway Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'Jj6jgCstnWlUe6_lyiW_bR2czUXGmKNf_ua89xfBb-o-Cxpo49USxaxdrClK4rYy',\n",
" u'X_Coordinate__c': u'391787',\n",
" u'Y_Coordinate__c': u'203529',\n",
" u'campaignid': None},\n",
" u'0012000001Zus31AAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus31AAB',\n",
" u'Latitude': 51.73095,\n",
" u'Longitude': -2.12129,\n",
" u'Name': u'Whitespring The Broadway Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'7V-LgEvFYoO6uKhr5SOiixcYRuiFho_2ze5p0BoTO_nTSw6KXrM7jsDY7GWT_JUA',\n",
" u'X_Coordinate__c': u'391720',\n",
" u'Y_Coordinate__c': u'203588',\n",
" u'campaignid': None},\n",
" u'0012000001Zus38AAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus38AAB',\n",
" u'Latitude': 51.73165,\n",
" u'Longitude': -2.12196,\n",
" u'Name': u'Mill House Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'43oJWFTKs9KfhjU1MriFS6UbarNUcEXh1NHRP17x886CAbBarLh3BbF_0WkEGHhN',\n",
" u'X_Coordinate__c': u'391674',\n",
" u'Y_Coordinate__c': u'203666',\n",
" u'campaignid': None},\n",
" u'0012000001Zus3FAAR': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus3FAAR',\n",
" u'Latitude': 51.73059,\n",
" u'Longitude': -2.12417,\n",
" u'Name': u'Acorn Cottage The Broadway Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'cVR3JWYYmeXL0oNIGMqeq_dveK4D8miHZNlULbxhKuVeoyQuXglbAgRSD8K0NLy0',\n",
" u'X_Coordinate__c': u'391520.5',\n",
" u'Y_Coordinate__c': u'203549.42',\n",
" u'campaignid': None},\n",
" u'0012000001Zus3HAAR': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus3HAAR',\n",
" u'Latitude': 51.73137,\n",
" u'Longitude': -2.12125,\n",
" u'Name': u'Crofts Hill Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'VB3mpzlrnt8X0ytDM6QO_DzmPj1B7KW5m87lIh86oRJ1zd9odIt01T9xUHyA7WCU',\n",
" u'X_Coordinate__c': u'391723',\n",
" u'Y_Coordinate__c': u'203635',\n",
" u'campaignid': None},\n",
" u'0012000001Zus3MAAR': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus3MAAR',\n",
" u'Latitude': 51.73082,\n",
" u'Longitude': -2.12494,\n",
" u'Name': u'Wesley Cottage Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'KXIOKwC5stlSmkBszmznhqMBf9Hmsq6mPzzWEPzPDXSlvTgEMdnvWvM8Z7TNJoQL',\n",
" u'X_Coordinate__c': u'391468',\n",
" u'Y_Coordinate__c': u'203574',\n",
" u'campaignid': None},\n",
" u'0012000001Zus3OAAR': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus3OAAR',\n",
" u'Latitude': 51.73109,\n",
" u'Longitude': -2.12397,\n",
" u'Name': u'Cobdens Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'U817y3hd5M8keDFDYV0XHZ6ISd8mkOnL1BswlxyijcIVpyTsB2wdKAzCp4uIpm70',\n",
" u'X_Coordinate__c': u'391535',\n",
" u'Y_Coordinate__c': u'203604',\n",
" u'campaignid': None},\n",
" u'0012000001Zus3SAAR': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus3SAAR',\n",
" u'Latitude': 51.73102,\n",
" u'Longitude': -2.12422,\n",
" u'Name': u'Hillcroft Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'CsbK65xX3HFWI7170CI6Yzy0dOSSCTxRaCSzJ0XnTddhxge3UCVatE7_vE1MMQm9',\n",
" u'X_Coordinate__c': u'391518',\n",
" u'Y_Coordinate__c': u'203596',\n",
" u'campaignid': None},\n",
" u'0012000001Zus3WAAR': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus3WAAR',\n",
" u'Latitude': 51.73078,\n",
" u'Longitude': -2.12423,\n",
" u'Name': u'Frampton Cottage Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'iOltJJafqMknSuRWJmsk4YvQSNrd_vmcAkEfzYDsW6iO0pD8ielMi2JQdYWc4sEP',\n",
" u'X_Coordinate__c': u'391517.19',\n",
" u'Y_Coordinate__c': u'203569.67',\n",
" u'campaignid': None},\n",
" u'0012000001Zus3eAAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus3eAAB',\n",
" u'Latitude': 51.73087,\n",
" u'Longitude': -2.12467,\n",
" u'Name': u'Lilac Cottage Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'gVKgnkjZ01s8fH3KJVkMqAL4RmEK0yS7GFuLalRzjhCEjAIsArfv0s31yW8Yglkq',\n",
" u'X_Coordinate__c': u'391487',\n",
" u'Y_Coordinate__c': u'203580',\n",
" u'campaignid': None},\n",
" u'0012000001Zus3oAAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus3oAAB',\n",
" u'Latitude': 51.731,\n",
" u'Longitude': -2.12035,\n",
" u'Name': u'Treetops Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'_ErtU8AE5JxtRPOiHai9xU4Luhwvoo-ubDiD7l_6jueOIU-5GP26iQqoP3ZGscFZ',\n",
" u'X_Coordinate__c': u'391785',\n",
" u'Y_Coordinate__c': u'203594',\n",
" u'campaignid': None},\n",
" u'0012000001Zus44AAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus44AAB',\n",
" u'Latitude': 51.73092,\n",
" u'Longitude': -2.12536,\n",
" u'Name': u'Millbank Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'RZUafhPG3HN-A58ixSKk-n1ncYHdZg3Ywv9IPgYuLmzx3KaV7wLY6ZQAVBWxc_Gl',\n",
" u'X_Coordinate__c': u'391438.61',\n",
" u'Y_Coordinate__c': u'203585.02',\n",
" u'campaignid': None},\n",
" u'0012000001Zus4MAAR': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus4MAAR',\n",
" u'Latitude': 51.73027,\n",
" u'Longitude': -2.12391,\n",
" u'Name': u'The Knowle The Broadway Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'193b3OCR7YzP6Kcye2I-14oi3kASw_ziv6MnB5bcpwZE8L7BuNN2d3ia1zuGMRrZ',\n",
" u'X_Coordinate__c': u'391539',\n",
" u'Y_Coordinate__c': u'203513',\n",
" u'campaignid': None},\n",
" u'0012000001Zus6GAAR': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus6GAAR',\n",
" u'Latitude': 51.73116,\n",
" u'Longitude': -2.12483,\n",
" u'Name': u'Horizon Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'3EO-BP0p6X8VIqGgo54BgAeZaZ1c957Yml96zx7p9hAqc0u0Sn8KfRppOXd2NA6X',\n",
" u'X_Coordinate__c': u'391476.34',\n",
" u'Y_Coordinate__c': u'203612.01',\n",
" u'campaignid': None},\n",
" u'0012000001Zus6HAAR': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus6HAAR',\n",
" u'Latitude': 51.73051,\n",
" u'Longitude': -2.11993,\n",
" u'Name': u'Seaview The Broadway Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'7-Wabw68kjDbAUJOMVim_dgWQuqw1bYEhVXgBDE0ML5zRLMGGo82l215afRWJVEA',\n",
" u'X_Coordinate__c': u'391814',\n",
" u'Y_Coordinate__c': u'203539',\n",
" u'campaignid': None},\n",
" u'0012000001Zus6WAAR': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus6WAAR',\n",
" u'Latitude': 51.73098,\n",
" u'Longitude': -2.12376,\n",
" u'Name': u'Plot A Land At Summerfield The Broadway Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'O4PpPKalfKGmU7cnPZSFnBA0jLttQ7VIQUYG1SkPUNiC9PvJfMg6CCt7kgJbNZVS',\n",
" u'X_Coordinate__c': u'391550.1',\n",
" u'Y_Coordinate__c': u'203591.83',\n",
" u'campaignid': None},\n",
" u'0012000001Zus6XAAR': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus6XAAR',\n",
" u'Latitude': 51.73076,\n",
" u'Longitude': -2.12371,\n",
" u'Name': u'Plot B Land At Summerfield The Broadway Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'sWFGFHBfeQFRu24g32zckNuv9kVKToZTGORJ2Dkenkt-R75eO9v8_83jdgezJymp',\n",
" u'X_Coordinate__c': u'391552.58',\n",
" u'Y_Coordinate__c': u'203567.36',\n",
" u'campaignid': None},\n",
" u'0012000001Zus6YAAR': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus6YAAR',\n",
" u'Latitude': 51.73083,\n",
" u'Longitude': -2.12351,\n",
" u'Name': u'Plot C Land At Summerfield The Broadway Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'uzl8K_33QcBRmkOu8-_1y_64YdeupE1ljXL_T7qs8qswyZt3QOmBAOEoemjcyGQq',\n",
" u'X_Coordinate__c': u'391566.63',\n",
" u'Y_Coordinate__c': u'203574.63',\n",
" u'campaignid': None},\n",
" u'0012000001Zus7zAAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus7zAAB',\n",
" u'Latitude': 51.73088,\n",
" u'Longitude': -2.12365,\n",
" u'Name': u'Summerfield The Broadway Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'PZjoceaHK9EXylgVeZumWbmXT-odno-XSqKqQ2-qlGz2XAztj6lN230CvWAjdsJ8',\n",
" u'X_Coordinate__c': u'391556.96',\n",
" u'Y_Coordinate__c': u'203580.75',\n",
" u'campaignid': None},\n",
" u'0012000001Zus83AAB': {u'Business_Premises__c': False,\n",
" u'Community_New__c': u'a032000000QGMxQAAX',\n",
" u'Excess_Construction_Charge__c': False,\n",
" u'Id': u'0012000001Zus83AAB',\n",
" u'Latitude': 51.73071,\n",
" u'Longitude': -2.12394,\n",
" u'Name': u'Sunfold The Broadway Oakridge Lynch',\n",
" u'PostCode_Text__c': u'GL6 7NY',\n",
" u'PostCode__r': {u'Id': None, u'Name': u'GL6 7NY'},\n",
" u'Reference': u'IwXdAS4OTq33nHX6_bPlL1LS3q_n8bnST-q0_3FFr1jC2lKgHq8dSAsXo-25DK1f',\n",
" u'X_Coordinate__c': u'391537.12',\n",
" u'Y_Coordinate__c': u'203561.9',\n",
" u'campaignid': None}},\n",
" u'events': None,\n",
" u'localities': None}"
]
},
"execution_count": 50,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"data['communities'][comm]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.14"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment