list tag
This commit is contained in:
parent
4b6b06aade
commit
47f504beb5
@ -46,6 +46,11 @@ class WPMenu:
|
|||||||
page = self._request.get(i)
|
page = self._request.get(i)
|
||||||
if page.status_code == 200:
|
if page.status_code == 200:
|
||||||
soup = BeautifulSoup(page.text, self._parser)
|
soup = BeautifulSoup(page.text, self._parser)
|
||||||
|
ul = soup.find_all("ul", id="listsmooth")
|
||||||
|
for anchor in ul[0].find_all("li"):
|
||||||
|
li = anchor.find_all("li")
|
||||||
|
for content in li:
|
||||||
|
a = content.find("a")
|
||||||
else:
|
else:
|
||||||
self._logger.error("{0} : index didn't get due status code : {1}".format(self._name, page.status_code))
|
self._logger.error("{0} : index didn't get due status code : {1}".format(self._name, page.status_code))
|
||||||
self._logger.debug("{0} : {1}".format(self._name, page.content))
|
self._logger.debug("{0} : {1}".format(self._name, page.content))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user