uk_bin_collection 0.113.0__py3-none-any.whl → 0.114.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1141,6 +1141,13 @@
1141
1141
  "wiki_name": "Nottingham City Council",
1142
1142
  "wiki_note": "Pass the UPRN. You can find it using [FindMyAddress](https://www.findmyaddress.co.uk/search)."
1143
1143
  },
1144
+ "NuneatonBedworthBoroughCouncil": {
1145
+ "url": "https://www.nuneatonandbedworth.gov.uk",
1146
+ "wiki_name": "Nuneaton and Bedworth Borough Council",
1147
+ "skip_get_url": true,
1148
+ "house_number": "Newdigate Road",
1149
+ "wiki_note": "Pass the name of the street ONLY in the house number parameter, wrapped in double quotes. Street name must match exactly as it appears on the council's website."
1150
+ },
1144
1151
  "OldhamCouncil": {
1145
1152
  "url": "https://portal.oldham.gov.uk/bincollectiondates/details?uprn=422000033556",
1146
1153
  "wiki_name": "Oldham Council",
@@ -0,0 +1,931 @@
1
+ from bs4 import BeautifulSoup
2
+ from uk_bin_collection.uk_bin_collection.common import *
3
+ from uk_bin_collection.uk_bin_collection.get_bin_data import AbstractGetBinDataClass
4
+
5
+ from bs4 import BeautifulSoup
6
+ import urllib.parse
7
+ import requests
8
+ import re
9
+
10
+ class CouncilClass(AbstractGetBinDataClass):
11
+ def parse_data(self, page: str, **kwargs) -> dict:
12
+
13
+ data = {"bins": []}
14
+
15
+
16
+
17
+ street = urllib.parse.quote_plus(kwargs.get("paon"))
18
+ base_url = "https://www.nuneatonandbedworth.gov.uk/"
19
+ search_query = f"directory/search?directoryID=3&showInMap=&keywords={street}&search=Search+directory"
20
+
21
+ search_response = requests.get(base_url + search_query)
22
+
23
+ if search_response.status_code == 200:
24
+ soup = BeautifulSoup(search_response.content, 'html.parser')
25
+ street_link_tags = soup.find_all('a', class_='list__link')
26
+
27
+ street_name = kwargs.get("paon").lower()
28
+ matches = [tag for tag in street_link_tags if street_name in tag.text.lower()]
29
+
30
+ if len(matches) == 1:
31
+ street_url = matches[0]['href']
32
+ full_url = base_url.rstrip('/') + street_url
33
+ bin_data = self.get_bin_data(full_url)
34
+
35
+ for k, v in bin_data.items():
36
+ for date in v:
37
+ dict_data = {
38
+ "type": k,
39
+ "collectionDate": date
40
+ }
41
+ data["bins"].append(dict_data)
42
+
43
+ return data
44
+
45
+ elif len(matches) > 1:
46
+ Exception("Multiple street URLs found. Please refine your search.")
47
+ else:
48
+ Exception("Street URL not found.")
49
+ else:
50
+ Exception("Failed to retrieve search results.")
51
+
52
+ return data
53
+
54
+ def get_bin_data(self, url) -> dict:
55
+
56
+ bin_day_response = requests.get(url)
57
+
58
+ if bin_day_response.status_code == 200:
59
+
60
+ soup = BeautifulSoup(bin_day_response.content, 'html.parser')
61
+
62
+ download_link = soup.find('a', {'href': re.compile(r'/downloads/file')})
63
+
64
+
65
+ if download_link:
66
+ file_url = download_link['href']
67
+ filename = file_url.split('/')[-1]
68
+
69
+ bin_data = {
70
+ "bin-calendar-friday-b": {
71
+ "Black Bin": [
72
+ "2024-10-04",
73
+ "2024-10-18",
74
+ "2024-11-01",
75
+ "2024-11-15",
76
+ "2024-11-29",
77
+ "2024-12-13",
78
+ "2024-12-27",
79
+ "2025-01-10",
80
+ "2025-01-24",
81
+ "2025-02-07",
82
+ "2025-02-21",
83
+ "2025-03-07",
84
+ "2025-03-21",
85
+ "2025-04-04",
86
+ "2025-04-18",
87
+ "2025-05-02",
88
+ "2025-05-16",
89
+ "2025-05-30",
90
+ "2025-06-13",
91
+ "2025-06-27",
92
+ "2025-07-11",
93
+ "2025-07-25",
94
+ "2025-08-08",
95
+ "2025-08-22",
96
+ "2025-09-05",
97
+ "2025-09-19"
98
+ ],
99
+ "Brown Bin": [
100
+ "2024-10-11",
101
+ "2024-10-25",
102
+ "2024-11-08",
103
+ "2024-11-22",
104
+ "2024-12-06",
105
+ "2024-12-20",
106
+ "2025-01-03",
107
+ "2025-01-17",
108
+ "2025-01-31",
109
+ "2025-02-14",
110
+ "2025-02-28",
111
+ "2025-03-14",
112
+ "2025-03-28",
113
+ "2025-04-11",
114
+ "2025-04-25",
115
+ "2025-05-09",
116
+ "2025-05-23",
117
+ "2025-06-06",
118
+ "2025-06-20",
119
+ "2025-07-04",
120
+ "2025-07-18",
121
+ "2025-08-01",
122
+ "2025-08-15",
123
+ "2025-08-29",
124
+ "2025-09-12",
125
+ "2025-09-26"
126
+ ],
127
+ "Green Bin": [
128
+ "2024-10-11",
129
+ "2024-10-25",
130
+ "2024-11-08",
131
+ "2024-11-22",
132
+ "2024-12-06",
133
+ "2024-12-20",
134
+ "2025-01-03",
135
+ "2025-01-17",
136
+ "2025-02-14",
137
+ "2025-02-28",
138
+ "2025-03-14",
139
+ "2025-03-28",
140
+ "2025-04-11",
141
+ "2025-04-25",
142
+ "2025-05-09",
143
+ "2025-05-23",
144
+ "2025-06-06",
145
+ "2025-06-20",
146
+ "2025-07-04",
147
+ "2025-07-18",
148
+ "2025-08-01",
149
+ "2025-08-15",
150
+ "2025-08-29",
151
+ "2025-09-12",
152
+ "2025-09-26"
153
+ ]
154
+ },
155
+ "bin-calendar-thursday-b": {
156
+ "Black Bin": [
157
+ "2024-10-03",
158
+ "2024-10-17",
159
+ "2024-10-31",
160
+ "2024-11-14",
161
+ "2024-11-28",
162
+ "2024-12-12",
163
+ "2024-12-26",
164
+ "2025-01-09",
165
+ "2025-01-23",
166
+ "2025-02-06",
167
+ "2025-02-20",
168
+ "2025-03-06",
169
+ "2025-03-20",
170
+ "2025-04-03",
171
+ "2025-04-17",
172
+ "2025-05-01",
173
+ "2025-05-15",
174
+ "2025-05-29",
175
+ "2025-06-12",
176
+ "2025-06-26",
177
+ "2025-07-10",
178
+ "2025-07-24",
179
+ "2025-08-07",
180
+ "2025-08-21",
181
+ "2025-09-04",
182
+ "2025-09-18"
183
+ ],
184
+ "Brown Bin": [
185
+ "2024-10-10",
186
+ "2024-10-24",
187
+ "2024-11-07",
188
+ "2024-11-21",
189
+ "2024-12-05",
190
+ "2024-12-19",
191
+ "2025-01-02",
192
+ "2025-01-16",
193
+ "2025-01-30",
194
+ "2025-02-13",
195
+ "2025-02-27",
196
+ "2025-03-13",
197
+ "2025-03-27",
198
+ "2025-04-10",
199
+ "2025-04-24",
200
+ "2025-05-08",
201
+ "2025-05-22",
202
+ "2025-06-05",
203
+ "2025-06-19",
204
+ "2025-07-03",
205
+ "2025-07-17",
206
+ "2025-07-31",
207
+ "2025-08-14",
208
+ "2025-08-28",
209
+ "2025-09-11",
210
+ "2025-09-25"
211
+ ],
212
+ "Green Bin": [
213
+ "2024-10-10",
214
+ "2024-10-24",
215
+ "2024-11-07",
216
+ "2024-11-21",
217
+ "2024-12-05",
218
+ "2024-12-19",
219
+ "2025-01-02",
220
+ "2025-01-16",
221
+ "2025-02-13",
222
+ "2025-02-27",
223
+ "2025-03-13",
224
+ "2025-03-27",
225
+ "2025-04-10",
226
+ "2025-04-24",
227
+ "2025-05-08",
228
+ "2025-05-22",
229
+ "2025-06-05",
230
+ "2025-06-19",
231
+ "2025-07-03",
232
+ "2025-07-17",
233
+ "2025-07-31",
234
+ "2025-08-14",
235
+ "2025-08-28",
236
+ "2025-09-11",
237
+ "2025-09-25"
238
+ ]
239
+ },
240
+ "bin-calendar-wednesday-b": {
241
+ "Black Bin": [
242
+ "2024-10-02",
243
+ "2024-10-16",
244
+ "2024-10-30",
245
+ "2024-11-13",
246
+ "2024-11-27",
247
+ "2024-12-11",
248
+ "2024-12-25",
249
+ "2025-01-08",
250
+ "2025-01-22",
251
+ "2025-02-05",
252
+ "2025-02-19",
253
+ "2025-03-05",
254
+ "2025-03-19",
255
+ "2025-04-02",
256
+ "2025-04-16",
257
+ "2025-04-30",
258
+ "2025-05-14",
259
+ "2025-05-28",
260
+ "2025-06-11",
261
+ "2025-06-25",
262
+ "2025-07-09",
263
+ "2025-07-23",
264
+ "2025-08-06",
265
+ "2025-08-20",
266
+ "2025-09-03",
267
+ "2025-09-17"
268
+ ],
269
+ "Brown Bin": [
270
+ "2024-10-09",
271
+ "2024-10-23",
272
+ "2024-11-06",
273
+ "2024-11-20",
274
+ "2024-12-04",
275
+ "2024-12-18",
276
+ "2025-01-01",
277
+ "2025-01-15",
278
+ "2025-01-29",
279
+ "2025-02-12",
280
+ "2025-02-26",
281
+ "2025-03-12",
282
+ "2025-03-26",
283
+ "2025-04-09",
284
+ "2025-04-23",
285
+ "2025-05-07",
286
+ "2025-05-21",
287
+ "2025-06-04",
288
+ "2025-06-18",
289
+ "2025-07-02",
290
+ "2025-07-16",
291
+ "2025-07-30",
292
+ "2025-08-13",
293
+ "2025-08-27",
294
+ "2025-09-10",
295
+ "2025-09-24"
296
+ ],
297
+ "Green Bin": [
298
+ "2024-10-09",
299
+ "2024-10-23",
300
+ "2024-11-06",
301
+ "2024-11-20",
302
+ "2024-12-04",
303
+ "2024-12-18",
304
+ "2025-01-01",
305
+ "2025-01-15",
306
+ "2025-02-12",
307
+ "2025-02-26",
308
+ "2025-03-12",
309
+ "2025-03-26",
310
+ "2025-04-09",
311
+ "2025-04-23",
312
+ "2025-05-07",
313
+ "2025-05-21",
314
+ "2025-06-04",
315
+ "2025-06-18",
316
+ "2025-07-02",
317
+ "2025-07-16",
318
+ "2025-07-30",
319
+ "2025-08-13",
320
+ "2025-08-27",
321
+ "2025-09-10",
322
+ "2025-09-24"
323
+ ]
324
+ },
325
+ "bin-calendar-tuesday-b": {
326
+ "Black Bin": [
327
+ "2024-10-01",
328
+ "2024-10-15",
329
+ "2024-10-29",
330
+ "2024-11-12",
331
+ "2024-11-26",
332
+ "2024-12-10",
333
+ "2024-12-24",
334
+ "2025-01-07",
335
+ "2025-01-21",
336
+ "2025-02-04",
337
+ "2025-02-18",
338
+ "2025-03-04",
339
+ "2025-03-18",
340
+ "2025-04-01",
341
+ "2025-04-15",
342
+ "2025-04-29",
343
+ "2025-05-13",
344
+ "2025-05-27",
345
+ "2025-06-10",
346
+ "2025-06-24",
347
+ "2025-07-08",
348
+ "2025-07-22",
349
+ "2025-08-05",
350
+ "2025-08-19",
351
+ "2025-09-02",
352
+ "2025-09-16",
353
+ "2025-09-30"
354
+ ],
355
+ "Brown Bin": [
356
+ "2024-10-08",
357
+ "2024-10-22",
358
+ "2024-11-05",
359
+ "2024-11-19",
360
+ "2024-12-03",
361
+ "2024-12-17",
362
+ "2024-12-31",
363
+ "2025-01-14",
364
+ "2025-01-28",
365
+ "2025-02-11",
366
+ "2025-02-25",
367
+ "2025-03-11",
368
+ "2025-03-25",
369
+ "2025-04-08",
370
+ "2025-04-22",
371
+ "2025-05-06",
372
+ "2025-05-20",
373
+ "2025-06-03",
374
+ "2025-06-17",
375
+ "2025-07-01",
376
+ "2025-07-15",
377
+ "2025-07-29",
378
+ "2025-08-12",
379
+ "2025-08-26",
380
+ "2025-09-09",
381
+ "2025-09-23"
382
+ ],
383
+ "Green Bin": [
384
+ "2024-10-08",
385
+ "2024-10-22",
386
+ "2024-11-05",
387
+ "2024-11-19",
388
+ "2024-12-03",
389
+ "2024-12-17",
390
+ "2024-12-31",
391
+ "2025-01-14",
392
+ "2025-02-11",
393
+ "2025-02-25",
394
+ "2025-03-11",
395
+ "2025-03-25",
396
+ "2025-04-08",
397
+ "2025-04-22",
398
+ "2025-05-06",
399
+ "2025-05-20",
400
+ "2025-06-03",
401
+ "2025-06-17",
402
+ "2025-07-01",
403
+ "2025-07-15",
404
+ "2025-07-29",
405
+ "2025-08-12",
406
+ "2025-08-26",
407
+ "2025-09-09",
408
+ "2025-09-23"
409
+ ]
410
+ },
411
+ "bin-calendar-monday-b": {
412
+ "Black Bin": [
413
+ "2024-10-14",
414
+ "2024-10-28",
415
+ "2024-11-11",
416
+ "2024-11-25",
417
+ "2024-12-09",
418
+ "2024-12-23",
419
+ "2025-01-06",
420
+ "2025-01-20",
421
+ "2025-02-03",
422
+ "2025-02-17",
423
+ "2025-03-03",
424
+ "2025-03-17",
425
+ "2025-03-31",
426
+ "2025-04-14",
427
+ "2025-04-28",
428
+ "2025-05-12",
429
+ "2025-05-26",
430
+ "2025-06-09",
431
+ "2025-06-23",
432
+ "2025-07-07",
433
+ "2025-07-21",
434
+ "2025-08-04",
435
+ "2025-08-18",
436
+ "2025-09-01",
437
+ "2025-09-15",
438
+ "2025-09-29"
439
+ ],
440
+ "Brown Bin": [
441
+ "2024-10-07",
442
+ "2024-10-21",
443
+ "2024-11-04",
444
+ "2024-11-18",
445
+ "2024-12-02",
446
+ "2024-12-16",
447
+ "2024-12-30",
448
+ "2025-01-13",
449
+ "2025-01-27",
450
+ "2025-02-10",
451
+ "2025-02-24",
452
+ "2025-03-10",
453
+ "2025-03-24",
454
+ "2025-04-07",
455
+ "2025-04-21",
456
+ "2025-05-05",
457
+ "2025-05-19",
458
+ "2025-06-02",
459
+ "2025-06-16",
460
+ "2025-06-30",
461
+ "2025-07-14",
462
+ "2025-07-28",
463
+ "2025-08-11",
464
+ "2025-08-25",
465
+ "2025-09-08",
466
+ "2025-09-22"
467
+ ],
468
+ "Green Bin": [
469
+ "2024-10-07",
470
+ "2024-10-21",
471
+ "2024-11-04",
472
+ "2024-11-18",
473
+ "2024-12-02",
474
+ "2024-12-16",
475
+ "2024-12-30",
476
+ "2025-01-13",
477
+ "2025-02-10",
478
+ "2025-02-24",
479
+ "2025-03-10",
480
+ "2025-03-24",
481
+ "2025-04-07",
482
+ "2025-04-21",
483
+ "2025-05-05",
484
+ "2025-05-19",
485
+ "2025-06-02",
486
+ "2025-06-16",
487
+ "2025-06-30",
488
+ "2025-07-14",
489
+ "2025-07-28",
490
+ "2025-08-11",
491
+ "2025-08-25",
492
+ "2025-09-08",
493
+ "2025-09-22"
494
+ ]
495
+ },
496
+ "bin-calendar-friday-a": {
497
+ "Black Bin": [
498
+ "2024-10-11",
499
+ "2024-10-25",
500
+ "2024-11-08",
501
+ "2024-11-22",
502
+ "2024-12-06",
503
+ "2024-12-20",
504
+ "2025-01-03",
505
+ "2025-01-17",
506
+ "2025-01-31",
507
+ "2025-02-14",
508
+ "2025-02-28",
509
+ "2025-03-14",
510
+ "2025-03-28",
511
+ "2025-04-11",
512
+ "2025-04-25",
513
+ "2025-05-09",
514
+ "2025-05-23",
515
+ "2025-06-06",
516
+ "2025-06-20",
517
+ "2025-07-04",
518
+ "2025-07-18",
519
+ "2025-08-01",
520
+ "2025-08-15",
521
+ "2025-08-29",
522
+ "2025-09-12",
523
+ "2025-09-26"
524
+ ],
525
+ "Brown Bin": [
526
+ "2024-10-04",
527
+ "2024-10-18",
528
+ "2024-11-01",
529
+ "2024-11-15",
530
+ "2024-11-29",
531
+ "2024-12-13",
532
+ "2024-12-27",
533
+ "2025-01-10",
534
+ "2025-01-24",
535
+ "2025-02-07",
536
+ "2025-02-21",
537
+ "2025-03-07",
538
+ "2025-03-21",
539
+ "2025-04-04",
540
+ "2025-04-18",
541
+ "2025-05-02",
542
+ "2025-05-16",
543
+ "2025-05-30",
544
+ "2025-06-13",
545
+ "2025-06-27",
546
+ "2025-07-11",
547
+ "2025-07-25",
548
+ "2025-08-08",
549
+ "2025-08-22",
550
+ "2025-09-05",
551
+ "2025-09-19"
552
+ ],
553
+ "Green Bin": [
554
+ "2024-10-04",
555
+ "2024-10-18",
556
+ "2024-11-01",
557
+ "2024-11-15",
558
+ "2024-11-29",
559
+ "2024-12-13",
560
+ "2024-12-27",
561
+ "2025-01-10",
562
+ "2025-02-07",
563
+ "2025-02-21",
564
+ "2025-03-07",
565
+ "2025-03-21",
566
+ "2025-04-04",
567
+ "2025-04-18",
568
+ "2025-05-02",
569
+ "2025-05-16",
570
+ "2025-05-30",
571
+ "2025-06-13",
572
+ "2025-06-27",
573
+ "2025-07-11",
574
+ "2025-07-25",
575
+ "2025-08-08",
576
+ "2025-08-22",
577
+ "2025-09-05",
578
+ "2025-09-19"
579
+ ]
580
+ },
581
+ "bin-calendar-thursday-a": {
582
+ "Black Bin": [
583
+ "2024-10-10",
584
+ "2024-10-24",
585
+ "2024-11-07",
586
+ "2024-11-21",
587
+ "2024-12-05",
588
+ "2024-12-19",
589
+ "2025-01-02",
590
+ "2025-01-16",
591
+ "2025-01-30",
592
+ "2025-02-13",
593
+ "2025-02-27",
594
+ "2025-03-13",
595
+ "2025-03-27",
596
+ "2025-04-10",
597
+ "2025-04-24",
598
+ "2025-05-08",
599
+ "2025-05-22",
600
+ "2025-06-05",
601
+ "2025-06-19",
602
+ "2025-07-03",
603
+ "2025-07-17",
604
+ "2025-07-31",
605
+ "2025-08-14",
606
+ "2025-08-28",
607
+ "2025-09-11",
608
+ "2025-09-25"
609
+ ],
610
+ "Brown Bin": [
611
+ "2024-10-03",
612
+ "2024-10-17",
613
+ "2024-10-31",
614
+ "2024-11-14",
615
+ "2024-11-28",
616
+ "2024-12-12",
617
+ "2024-12-26",
618
+ "2025-01-09",
619
+ "2025-01-23",
620
+ "2025-02-06",
621
+ "2025-02-20",
622
+ "2025-03-06",
623
+ "2025-03-20",
624
+ "2025-04-03",
625
+ "2025-04-17",
626
+ "2025-05-01",
627
+ "2025-05-15",
628
+ "2025-05-29",
629
+ "2025-06-12",
630
+ "2025-06-26",
631
+ "2025-07-10",
632
+ "2025-07-24",
633
+ "2025-08-07",
634
+ "2025-08-21",
635
+ "2025-09-04",
636
+ "2025-09-18"
637
+ ],
638
+ "Green Bin": [
639
+ "2024-10-03",
640
+ "2024-10-17",
641
+ "2024-10-31",
642
+ "2024-11-14",
643
+ "2024-11-28",
644
+ "2024-12-12",
645
+ "2024-12-26",
646
+ "2025-01-09",
647
+ "2025-02-06",
648
+ "2025-02-20",
649
+ "2025-03-06",
650
+ "2025-03-20",
651
+ "2025-04-03",
652
+ "2025-04-17",
653
+ "2025-05-01",
654
+ "2025-05-15",
655
+ "2025-05-29",
656
+ "2025-06-12",
657
+ "2025-06-26",
658
+ "2025-07-10",
659
+ "2025-07-24",
660
+ "2025-08-07",
661
+ "2025-08-21",
662
+ "2025-09-04",
663
+ "2025-09-18"
664
+ ]
665
+ },
666
+ "bin-calendar-wednesday-a": {
667
+ "Black Bin": [
668
+ "2024-10-09",
669
+ "2024-10-23",
670
+ "2024-11-06",
671
+ "2024-11-20",
672
+ "2024-12-04",
673
+ "2024-12-18",
674
+ "2025-01-01",
675
+ "2025-01-15",
676
+ "2025-01-29",
677
+ "2025-02-12",
678
+ "2025-02-26",
679
+ "2025-03-12",
680
+ "2025-03-26",
681
+ "2025-04-09",
682
+ "2025-04-23",
683
+ "2025-05-07",
684
+ "2025-05-21",
685
+ "2025-06-04",
686
+ "2025-06-18",
687
+ "2025-07-02",
688
+ "2025-07-16",
689
+ "2025-07-30",
690
+ "2025-08-13",
691
+ "2025-08-27",
692
+ "2025-09-10",
693
+ "2025-09-24"
694
+ ],
695
+ "Brown Bin": [
696
+ "2024-10-02",
697
+ "2024-10-16",
698
+ "2024-10-30",
699
+ "2024-11-13",
700
+ "2024-11-27",
701
+ "2024-12-11",
702
+ "2024-12-25",
703
+ "2025-01-08",
704
+ "2025-01-22",
705
+ "2025-02-05",
706
+ "2025-02-19",
707
+ "2025-03-05",
708
+ "2025-03-19",
709
+ "2025-04-02",
710
+ "2025-04-16",
711
+ "2025-04-30",
712
+ "2025-05-14",
713
+ "2025-05-28",
714
+ "2025-06-11",
715
+ "2025-06-25",
716
+ "2025-07-09",
717
+ "2025-07-23",
718
+ "2025-08-06",
719
+ "2025-08-20",
720
+ "2025-09-03",
721
+ "2025-09-17"
722
+ ],
723
+ "Green Bin": [
724
+ "2024-10-02",
725
+ "2024-10-16",
726
+ "2024-10-30",
727
+ "2024-11-13",
728
+ "2024-11-27",
729
+ "2024-12-11",
730
+ "2024-12-25",
731
+ "2025-01-08",
732
+ "2025-02-05",
733
+ "2025-02-19",
734
+ "2025-03-05",
735
+ "2025-03-19",
736
+ "2025-04-02",
737
+ "2025-04-16",
738
+ "2025-04-30",
739
+ "2025-05-14",
740
+ "2025-05-28",
741
+ "2025-06-11",
742
+ "2025-06-25",
743
+ "2025-07-09",
744
+ "2025-07-23",
745
+ "2025-08-06",
746
+ "2025-08-20",
747
+ "2025-09-03",
748
+ "2025-09-17"
749
+ ]
750
+ },
751
+ "bin-calendar-tuesday-a": {
752
+ "Black Bin": [
753
+ "2024-10-08",
754
+ "2024-10-22",
755
+ "2024-11-05",
756
+ "2024-11-19",
757
+ "2024-12-03",
758
+ "2024-12-17",
759
+ "2024-12-31",
760
+ "2025-01-14",
761
+ "2025-01-28",
762
+ "2025-02-11",
763
+ "2025-02-25",
764
+ "2025-03-11",
765
+ "2025-03-25",
766
+ "2025-04-08",
767
+ "2025-04-22",
768
+ "2025-05-06",
769
+ "2025-05-20",
770
+ "2025-06-03",
771
+ "2025-06-17",
772
+ "2025-07-01",
773
+ "2025-07-15",
774
+ "2025-07-29",
775
+ "2025-08-12",
776
+ "2025-08-26",
777
+ "2025-09-09",
778
+ "2025-09-23"
779
+ ],
780
+ "Brown Bin": [
781
+ "2024-10-01",
782
+ "2024-10-15",
783
+ "2024-10-29",
784
+ "2024-11-12",
785
+ "2024-11-26",
786
+ "2024-12-10",
787
+ "2024-12-24",
788
+ "2025-01-07",
789
+ "2025-01-21",
790
+ "2025-02-04",
791
+ "2025-02-18",
792
+ "2025-03-04",
793
+ "2025-03-18",
794
+ "2025-04-01",
795
+ "2025-04-15",
796
+ "2025-04-29",
797
+ "2025-05-13",
798
+ "2025-05-27",
799
+ "2025-06-10",
800
+ "2025-06-24",
801
+ "2025-07-08",
802
+ "2025-07-22",
803
+ "2025-08-05",
804
+ "2025-08-19",
805
+ "2025-09-02",
806
+ "2025-09-16",
807
+ "2025-09-30"
808
+ ],
809
+ "Green Bin": [
810
+ "2024-10-01",
811
+ "2024-10-15",
812
+ "2024-10-29",
813
+ "2024-11-12",
814
+ "2024-11-26",
815
+ "2024-12-10",
816
+ "2024-12-24",
817
+ "2025-01-07",
818
+ "2025-02-04",
819
+ "2025-02-18",
820
+ "2025-03-04",
821
+ "2025-03-18",
822
+ "2025-04-01",
823
+ "2025-04-15",
824
+ "2025-04-29",
825
+ "2025-05-13",
826
+ "2025-05-27",
827
+ "2025-06-10",
828
+ "2025-06-24",
829
+ "2025-07-08",
830
+ "2025-07-22",
831
+ "2025-08-05",
832
+ "2025-08-19",
833
+ "2025-09-02",
834
+ "2025-09-16",
835
+ "2025-09-30"
836
+ ]
837
+ },
838
+ "bin-calendar-monday-a": {
839
+ "Black Bin": [
840
+ "2024-10-07",
841
+ "2024-10-21",
842
+ "2024-11-04",
843
+ "2024-11-18",
844
+ "2024-12-02",
845
+ "2024-12-16",
846
+ "2024-12-30",
847
+ "2025-01-13",
848
+ "2025-01-27",
849
+ "2025-02-10",
850
+ "2025-02-24",
851
+ "2025-03-10",
852
+ "2025-03-24",
853
+ "2025-04-07",
854
+ "2025-04-21",
855
+ "2025-05-05",
856
+ "2025-05-19",
857
+ "2025-06-02",
858
+ "2025-06-16",
859
+ "2025-06-30",
860
+ "2025-07-14",
861
+ "2025-07-28",
862
+ "2025-08-11",
863
+ "2025-08-25",
864
+ "2025-09-08",
865
+ "2025-09-22"
866
+ ],
867
+ "Brown Bin": [
868
+ "2024-10-14",
869
+ "2024-10-28",
870
+ "2024-11-11",
871
+ "2024-11-25",
872
+ "2024-12-09",
873
+ "2024-12-23",
874
+ "2025-01-06",
875
+ "2025-01-20",
876
+ "2025-02-03",
877
+ "2025-02-17",
878
+ "2025-03-03",
879
+ "2025-03-17",
880
+ "2025-03-31",
881
+ "2025-04-14",
882
+ "2025-04-28",
883
+ "2025-05-12",
884
+ "2025-05-26",
885
+ "2025-06-09",
886
+ "2025-06-23",
887
+ "2025-07-07",
888
+ "2025-07-21",
889
+ "2025-08-04",
890
+ "2025-08-18",
891
+ "2025-09-01",
892
+ "2025-09-15"
893
+ ],
894
+ "Green Bin": [
895
+ "2024-10-14",
896
+ "2024-10-28",
897
+ "2024-11-11",
898
+ "2024-11-25",
899
+ "2024-12-09",
900
+ "2024-12-23",
901
+ "2025-01-06",
902
+ "2025-02-03",
903
+ "2025-02-17",
904
+ "2025-03-03",
905
+ "2025-03-17",
906
+ "2025-03-31",
907
+ "2025-04-14",
908
+ "2025-04-28",
909
+ "2025-05-12",
910
+ "2025-05-26",
911
+ "2025-06-09",
912
+ "2025-06-23",
913
+ "2025-07-07",
914
+ "2025-07-21",
915
+ "2025-08-04",
916
+ "2025-08-18",
917
+ "2025-09-01",
918
+ "2025-09-15"
919
+ ]
920
+ }
921
+ }
922
+
923
+ output = bin_data[filename]
924
+ else:
925
+ print(bin_day_response.content)
926
+ Exception("Bin data Download link not found.")
927
+
928
+ else:
929
+ Exception("Failed to retrieve bin data.")
930
+
931
+ return output
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: uk_bin_collection
3
- Version: 0.113.0
3
+ Version: 0.114.0
4
4
  Summary: Python Lib to collect UK Bin Data
5
5
  Author: Robert Bradley
6
6
  Author-email: robbrad182@gmail.com
@@ -2,7 +2,7 @@ uk_bin_collection/README.rst,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
2
2
  uk_bin_collection/tests/council_feature_input_parity.py,sha256=DO6Mk4ImYgM5ZCZ-cutwz5RoYYWZRLYx2tr6zIs_9Rc,3843
3
3
  uk_bin_collection/tests/features/environment.py,sha256=VQZjJdJI_kZn08M0j5cUgvKT4k3iTw8icJge1DGOkoA,127
4
4
  uk_bin_collection/tests/features/validate_council_outputs.feature,sha256=SJK-Vc737hrf03tssxxbeg_JIvAH-ddB8f6gU1LTbuQ,251
5
- uk_bin_collection/tests/input.json,sha256=MzVqGem8V4TCIPWSIDQy5r8er_SRhBQcxGoBEzmETHY,98036
5
+ uk_bin_collection/tests/input.json,sha256=5zb0mHkcv77mRLrlJknlb_oA2P8b5NXZn2WIRJQRJlo,98458
6
6
  uk_bin_collection/tests/output.schema,sha256=ZwKQBwYyTDEM4G2hJwfLUVM-5v1vKRvRK9W9SS1sd18,1086
7
7
  uk_bin_collection/tests/step_defs/step_helpers/file_handler.py,sha256=Ygzi4V0S1MIHqbdstUlIqtRIwnynvhu4UtpweJ6-5N8,1474
8
8
  uk_bin_collection/tests/step_defs/test_validate_council.py,sha256=VZ0a81sioJULD7syAYHjvK_-nT_Rd36tUyzPetSA0gk,3475
@@ -155,6 +155,7 @@ uk_bin_collection/uk_bin_collection/councils/NorthYorkshire.py,sha256=2wTrr3VrZD
155
155
  uk_bin_collection/uk_bin_collection/councils/NorthumberlandCouncil.py,sha256=KEFsxEvQ159fkuFo-fza67YCnnCZ5ElwE80zTrqDEWI,4990
156
156
  uk_bin_collection/uk_bin_collection/councils/NorwichCityCouncil.py,sha256=At-9dEcKBUZSrtJ2RncwvMnV0OVU3pE6kxEYbLL-Av8,2437
157
157
  uk_bin_collection/uk_bin_collection/councils/NottinghamCityCouncil.py,sha256=panTCjnsBOQ98-TBO9xVZk_jcT_gjMhx3Gg5oWxBRLo,1254
158
+ uk_bin_collection/uk_bin_collection/councils/NuneatonBedworthBoroughCouncil.py,sha256=QikiWSIYMjFzXMjLeXls35roJUNYn_RMpDjgkyimIu8,19134
158
159
  uk_bin_collection/uk_bin_collection/councils/OldhamCouncil.py,sha256=9dlesCxNoVXlmQaqZj7QFh00smnJbm1Gnjkr_Uvzurs,1771
159
160
  uk_bin_collection/uk_bin_collection/councils/OxfordCityCouncil.py,sha256=d_bY0cXRDH4kSoWGGCTNN61MNErapSOf2WSTYDJr2r8,2318
160
161
  uk_bin_collection/uk_bin_collection/councils/PerthAndKinrossCouncil.py,sha256=Kos5GzN2co3Ij3tSHOXB9S71Yt78RROCfVRtnh7M1VU,3657
@@ -246,8 +247,8 @@ uk_bin_collection/uk_bin_collection/councils/YorkCouncil.py,sha256=I2kBYMlsD4bId
246
247
  uk_bin_collection/uk_bin_collection/councils/council_class_template/councilclasstemplate.py,sha256=EQWRhZ2pEejlvm0fPyOTsOHKvUZmPnxEYO_OWRGKTjs,1158
247
248
  uk_bin_collection/uk_bin_collection/create_new_council.py,sha256=m-IhmWmeWQlFsTZC4OxuFvtw5ZtB8EAJHxJTH4O59lQ,1536
248
249
  uk_bin_collection/uk_bin_collection/get_bin_data.py,sha256=YvmHfZqanwrJ8ToGch34x-L-7yPe31nB_x77_Mgl_vo,4545
249
- uk_bin_collection-0.113.0.dist-info/LICENSE,sha256=vABBUOzcrgfaTKpzeo-si9YVEun6juDkndqA8RKdKGs,1071
250
- uk_bin_collection-0.113.0.dist-info/METADATA,sha256=SH-sE-p5P5IS0wofmxzWhKU0SPF71Zr72EOpcDJOj2c,17574
251
- uk_bin_collection-0.113.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
252
- uk_bin_collection-0.113.0.dist-info/entry_points.txt,sha256=36WCSGMWSc916S3Hi1ZkazzDKHaJ6CD-4fCEFm5MIao,90
253
- uk_bin_collection-0.113.0.dist-info/RECORD,,
250
+ uk_bin_collection-0.114.0.dist-info/LICENSE,sha256=vABBUOzcrgfaTKpzeo-si9YVEun6juDkndqA8RKdKGs,1071
251
+ uk_bin_collection-0.114.0.dist-info/METADATA,sha256=Ne1MR4fDm0HEtWa-FgFn3SMAOD3X60f4ImA_Ah4DGeM,17574
252
+ uk_bin_collection-0.114.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
253
+ uk_bin_collection-0.114.0.dist-info/entry_points.txt,sha256=36WCSGMWSc916S3Hi1ZkazzDKHaJ6CD-4fCEFm5MIao,90
254
+ uk_bin_collection-0.114.0.dist-info/RECORD,,