Skip to content

Commit

Permalink
Change regular expression to fit DXY new data structure
Browse files Browse the repository at this point in the history
BlankerL committed Mar 20, 2020
1 parent d6b3bc7 commit 3a56e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/crawler.py
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ def crawler(self):
continue
soup = BeautifulSoup(r.content, 'lxml')

overall_information = re.search(r'(\{"id".*\}\})\}', str(soup.find('script', attrs={'id': 'getStatisticsService'})))
overall_information = re.search(r'(\{"id".*\})\}', str(soup.find('script', attrs={'id': 'getStatisticsService'})))
if overall_information:
self.overall_parser(overall_information=overall_information)

0 comments on commit 3a56e02

Please sign in to comment.