updated notebook

This commit is contained in:
seangreaves
2022-09-04 15:01:43 +01:00
parent 98fb28408b
commit a2aeb775c7

View File

@@ -28,24 +28,6 @@
"![title](assets/candyy.jpeg)"
]
},
{
"cell_type": "markdown",
"id": "2d6d7178",
"metadata": {},
"source": [
"To get started you can input your Companies House API key below:"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "db1561a0",
"metadata": {},
"outputs": [],
"source": [
"access_token = \"829952e2-23ab-44ab-b6e3-efb57f2fceb7\""
]
},
{
"cell_type": "markdown",
"id": "29c0a1d2",
@@ -72,7 +54,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"id": "edf3f674",
"metadata": {},
"outputs": [],
@@ -90,7 +72,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"id": "30123a7f",
"metadata": {},
"outputs": [],
@@ -108,7 +90,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"id": "a61af765",
"metadata": {},
"outputs": [
@@ -135,7 +117,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"id": "04696e86",
"metadata": {},
"outputs": [
@@ -155,7 +137,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 5,
"id": "e9969b87",
"metadata": {},
"outputs": [
@@ -199,7 +181,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 6,
"id": "4ddce5bd",
"metadata": {},
"outputs": [],
@@ -209,7 +191,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 7,
"id": "c60007f1",
"metadata": {
"scrolled": false
@@ -258,7 +240,7 @@
"3 companies dissolved between years 4-3\n",
"\n",
"Index: 4\n",
"220 Consultancy House, Wards Road, Ilford, IG2 7DY\n",
"220 Consultancy House Wards Road, Ilford, IG2 7DY\n",
"33 companies registered or corresponding here, 32 are active.\n",
"6 currently active companies registered in 2016\n",
"5 currently active companies registered in 2012\n",
@@ -266,7 +248,7 @@
"1 companies dissolved between years 4-3\n",
"\n",
"Index: 5\n",
"220 Consultancy House Wards Road, Ilford, IG2 7DY\n",
"220 Consultancy House, Wards Road, Ilford, IG2 7DY\n",
"33 companies registered or corresponding here, 32 are active.\n",
"6 currently active companies registered in 2016\n",
"5 currently active companies registered in 2012\n",
@@ -288,46 +270,46 @@
"2 currently active companies registered in 2010\n",
"\n",
"Index: 8\n",
"220 Consultancy House, Wards Road, United Kingdom, Ilford, IG2 7DY\n",
"13 companies registered or corresponding here, 13 are active.\n",
"3 currently active companies registered in 2019\n",
"2 currently active companies registered in 2016\n",
"2 currently active companies registered in 2010\n",
"\n",
"Index: 9\n",
"Consultancy House, 220 Wards Road, United Kingdom, Ilford, IG2 7DY\n",
"13 companies registered or corresponding here, 13 are active.\n",
"3 currently active companies registered in 2019\n",
"2 currently active companies registered in 2016\n",
"2 currently active companies registered in 2010\n",
"\n",
"Index: 10\n",
"Index: 9\n",
"220, Consultancy House, Ilford, United Kingdom, IG2 7DY\n",
"13 companies registered or corresponding here, 13 are active.\n",
"3 currently active companies registered in 2019\n",
"2 currently active companies registered in 2016\n",
"2 currently active companies registered in 2010\n",
"\n",
"Index: 11\n",
"13 Charles Ii Street, 3rd Floor, London, England, SW1Y 4QU\n",
"3 companies registered or corresponding here, 3 are active.\n",
"2 currently active companies registered in 2020\n",
"1 currently active companies registered in 2017\n",
"Index: 10\n",
"220 Consultancy House, Wards Road, United Kingdom, Ilford, IG2 7DY\n",
"13 companies registered or corresponding here, 13 are active.\n",
"3 currently active companies registered in 2019\n",
"2 currently active companies registered in 2016\n",
"2 currently active companies registered in 2010\n",
"\n",
"Index: 12\n",
"Index: 11\n",
"13 Charles Ii Street 3rd Floor, Charles Ii Street, England, London, SW1Y 4QU\n",
"3 companies registered or corresponding here, 3 are active.\n",
"2 currently active companies registered in 2020\n",
"1 currently active companies registered in 2017\n",
"\n",
"Index: 12\n",
"13 Charles Ii Street, 3rd Floor, London, England, SW1Y 4QU\n",
"3 companies registered or corresponding here, 3 are active.\n",
"2 currently active companies registered in 2020\n",
"1 currently active companies registered in 2017\n",
"\n",
"Index: 13\n",
"3rd Floor 13 Charles Ii Street, England, London, SW1Y 4QU\n",
"3rd Floor, 13 Charles Ii Street, London, England, SW1Y 4QU\n",
"3 companies registered or corresponding here, 3 are active.\n",
"2 currently active companies registered in 2020\n",
"1 currently active companies registered in 2017\n",
"\n",
"Index: 14\n",
"3rd Floor, 13 Charles Ii Street, London, England, SW1Y 4QU\n",
"3rd Floor 13 Charles Ii Street, England, London, SW1Y 4QU\n",
"3 companies registered or corresponding here, 3 are active.\n",
"2 currently active companies registered in 2020\n",
"1 currently active companies registered in 2017\n",
@@ -408,7 +390,7 @@
"id": "514cbf17",
"metadata": {},
"source": [
"Now lets get all the officers that operate at this address:"
"Now lets get all the officers that operate at this address by including companies and also a list of the indexes for the companies you'd like to investigate, in this case 207 Regent Street would be index=0 so [0]:"
]
},
{
@@ -416,16 +398,7 @@
"execution_count": null,
"id": "51fd6d0c",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"completion: 48.60192102454643, index:2277\n",
"<Response [200]>\n"
]
}
],
"outputs": [],
"source": [
"businesses = get_officers(companies,[0])"
]