Skip to content

Commit ebfd961

Browse files
committed
fix: #1591
fix: #1591 Rushmoor Council
1 parent c2dbfd8 commit ebfd961

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

uk_bin_collection/uk_bin_collection/councils/RushmoorCouncil.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from bs4 import BeautifulSoup
2+
from lxml import etree
3+
24
from uk_bin_collection.uk_bin_collection.common import *
35
from uk_bin_collection.uk_bin_collection.get_bin_data import AbstractGetBinDataClass
4-
from lxml import etree
56

67

78
# import the wonderful Beautiful Soup and the URL grabber
@@ -20,7 +21,8 @@ def parse_data(self, page: str, **kwargs) -> dict:
2021
collections = []
2122

2223
# Convert the XML to JSON and load the next collection data
23-
result = soup.find("p").contents[0].text.replace("\\", "")[1:-1]
24+
result = soup.find("p").contents[0]
25+
2426
json_data = json.loads(result)["NextCollection"]
2527

2628
# Get general waste data

0 commit comments

Comments
 (0)