uk_bin_collection 0.128.1__py3-none-any.whl → 0.128.3__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- uk_bin_collection/uk_bin_collection/councils/CheshireEastCouncil.py +0 -1
- uk_bin_collection/uk_bin_collection/councils/MertonCouncil.py +13 -1
- {uk_bin_collection-0.128.1.dist-info → uk_bin_collection-0.128.3.dist-info}/METADATA +1 -1
- {uk_bin_collection-0.128.1.dist-info → uk_bin_collection-0.128.3.dist-info}/RECORD +7 -7
- {uk_bin_collection-0.128.1.dist-info → uk_bin_collection-0.128.3.dist-info}/LICENSE +0 -0
- {uk_bin_collection-0.128.1.dist-info → uk_bin_collection-0.128.3.dist-info}/WHEEL +0 -0
- {uk_bin_collection-0.128.1.dist-info → uk_bin_collection-0.128.3.dist-info}/entry_points.txt +0 -0
@@ -10,7 +10,6 @@ class CouncilClass(AbstractGetBinDataClass):
|
|
10
10
|
"""
|
11
11
|
A class to fetch and parse bin collection data for Cheshire East Council.
|
12
12
|
"""
|
13
|
-
|
14
13
|
def parse_data(self, page: Any, **kwargs: Any) -> Dict[str, Any]:
|
15
14
|
soup = BeautifulSoup(page.text, features="html.parser")
|
16
15
|
|
@@ -5,7 +5,7 @@ from uk_bin_collection.uk_bin_collection.common import *
|
|
5
5
|
from uk_bin_collection.uk_bin_collection.get_bin_data import AbstractGetBinDataClass
|
6
6
|
|
7
7
|
|
8
|
-
#
|
8
|
+
# Council class for Merton Council
|
9
9
|
class CouncilClass(AbstractGetBinDataClass):
|
10
10
|
"""
|
11
11
|
Concrete classes have to implement all abstract operations of the
|
@@ -31,6 +31,9 @@ class CouncilClass(AbstractGetBinDataClass):
|
|
31
31
|
"rubbish-wheelie",
|
32
32
|
"textiles",
|
33
33
|
"batteries",
|
34
|
+
"garden",
|
35
|
+
"communal-recycling",
|
36
|
+
"rubbish-communal",
|
34
37
|
),
|
35
38
|
)
|
36
39
|
|
@@ -45,6 +48,15 @@ class CouncilClass(AbstractGetBinDataClass):
|
|
45
48
|
cells = row.find_all("td")
|
46
49
|
# First cell is the bin_type
|
47
50
|
bin_type = cells[0].get_text().strip()
|
51
|
+
|
52
|
+
# Garden waste is optional, so skip if none scheduled - causes an error if it gets into the date parsing below.
|
53
|
+
if bin_type == "Garden waste":
|
54
|
+
if (
|
55
|
+
"There are no garden waste collections scheduled for this address."
|
56
|
+
in cells[1].select("p")[0].get_text().strip()
|
57
|
+
):
|
58
|
+
continue
|
59
|
+
|
48
60
|
# Date is on the second cell, second paragraph, wrapped in p
|
49
61
|
collectionDate = None
|
50
62
|
for format in possible_formats:
|
@@ -62,7 +62,7 @@ uk_bin_collection/uk_bin_collection/councils/CastlepointDistrictCouncil.py,sha25
|
|
62
62
|
uk_bin_collection/uk_bin_collection/councils/CharnwoodBoroughCouncil.py,sha256=tXfzMetN6wxahuGGRp2mIyCCDSL4F2aG61HhUxw6COQ,2172
|
63
63
|
uk_bin_collection/uk_bin_collection/councils/ChelmsfordCityCouncil.py,sha256=EB88D0MNJwuDZ2GX1ENc5maGYx17mnHTCtNl6s-v11E,5090
|
64
64
|
uk_bin_collection/uk_bin_collection/councils/CheltenhamBoroughCouncil.py,sha256=z59g9h6QwdeCNzonM5AI-6NvpLKocD-DT8eSvqk8RwU,3198
|
65
|
-
uk_bin_collection/uk_bin_collection/councils/CheshireEastCouncil.py,sha256=
|
65
|
+
uk_bin_collection/uk_bin_collection/councils/CheshireEastCouncil.py,sha256=HZ--6pN4OmlRYjOMce9hiMkdrH9NjULqsMdn2p0r5dQ,1678
|
66
66
|
uk_bin_collection/uk_bin_collection/councils/CheshireWestAndChesterCouncil.py,sha256=5mKZf22NgdyBY-SqV0c2q8b8IJobkoZrsfGEVUcxUyM,3544
|
67
67
|
uk_bin_collection/uk_bin_collection/councils/ChesterfieldBoroughCouncil.py,sha256=mZiM8Ugm_OP0JkC5pLaQmi4i79mAp4SNNrcIdsREjHw,7198
|
68
68
|
uk_bin_collection/uk_bin_collection/councils/ChichesterDistrictCouncil.py,sha256=HxrLcJves7ZsE8FbooymeecTUmScY4R7Oi71vwCePPo,4118
|
@@ -159,7 +159,7 @@ uk_bin_collection/uk_bin_collection/councils/MalvernHillsDC.py,sha256=iQG0EkX2np
|
|
159
159
|
uk_bin_collection/uk_bin_collection/councils/ManchesterCityCouncil.py,sha256=RY301_82z3-xInGai5ocT7rzoV75ATbf0N7uxn8Z9LE,3110
|
160
160
|
uk_bin_collection/uk_bin_collection/councils/MansfieldDistrictCouncil.py,sha256=F5AiTxImrnjE1k3ry96bfstOf5XSNBJS_4qqmymmh3w,1386
|
161
161
|
uk_bin_collection/uk_bin_collection/councils/MedwayCouncil.py,sha256=nBJSv09OUOascrfNu1ek1wNzE9ONu5ZkrBU-1qwDHJ0,1278
|
162
|
-
uk_bin_collection/uk_bin_collection/councils/MertonCouncil.py,sha256=
|
162
|
+
uk_bin_collection/uk_bin_collection/councils/MertonCouncil.py,sha256=xsOSX4KCcUHHo4BHB5JhFC9r5Q-h586Vk-5-X2VAJl0,2809
|
163
163
|
uk_bin_collection/uk_bin_collection/councils/MidAndEastAntrimBoroughCouncil.py,sha256=oOWwU5FSgGej2Mv7FQ66N-EzS5nZgmGsd0WnfLWUc1I,5238
|
164
164
|
uk_bin_collection/uk_bin_collection/councils/MidDevonCouncil.py,sha256=RjBZ7R3_Pax9p1d2DCygqryjV1RP4BYvqb-rT_KyOEg,3322
|
165
165
|
uk_bin_collection/uk_bin_collection/councils/MidSuffolkDistrictCouncil.py,sha256=h6M-v5jVYe7OlQ47Vf-0pEgECZLOOacK3_XE6zbpsM4,6329
|
@@ -301,8 +301,8 @@ uk_bin_collection/uk_bin_collection/councils/YorkCouncil.py,sha256=I2kBYMlsD4bId
|
|
301
301
|
uk_bin_collection/uk_bin_collection/councils/council_class_template/councilclasstemplate.py,sha256=EQWRhZ2pEejlvm0fPyOTsOHKvUZmPnxEYO_OWRGKTjs,1158
|
302
302
|
uk_bin_collection/uk_bin_collection/create_new_council.py,sha256=m-IhmWmeWQlFsTZC4OxuFvtw5ZtB8EAJHxJTH4O59lQ,1536
|
303
303
|
uk_bin_collection/uk_bin_collection/get_bin_data.py,sha256=YvmHfZqanwrJ8ToGch34x-L-7yPe31nB_x77_Mgl_vo,4545
|
304
|
-
uk_bin_collection-0.128.
|
305
|
-
uk_bin_collection-0.128.
|
306
|
-
uk_bin_collection-0.128.
|
307
|
-
uk_bin_collection-0.128.
|
308
|
-
uk_bin_collection-0.128.
|
304
|
+
uk_bin_collection-0.128.3.dist-info/LICENSE,sha256=vABBUOzcrgfaTKpzeo-si9YVEun6juDkndqA8RKdKGs,1071
|
305
|
+
uk_bin_collection-0.128.3.dist-info/METADATA,sha256=I4m2Gf6xx1EnUx3DSMfZtsy0E1fqmelGeBccliRh1rE,19549
|
306
|
+
uk_bin_collection-0.128.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
307
|
+
uk_bin_collection-0.128.3.dist-info/entry_points.txt,sha256=36WCSGMWSc916S3Hi1ZkazzDKHaJ6CD-4fCEFm5MIao,90
|
308
|
+
uk_bin_collection-0.128.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{uk_bin_collection-0.128.1.dist-info → uk_bin_collection-0.128.3.dist-info}/entry_points.txt
RENAMED
File without changes
|