menu-api #22

Merged
v4l3n71n merged 35 commits from menu-api into master 2023-08-04 21:22:39 +00:00
Showing only changes of commit 1655217050 - Show all commits

View File

@ -86,6 +86,8 @@ class WPMenu:
idMenu = {"id":0, "type":"", "link":""} idMenu = {"id":0, "type":"", "link":""}
soup = BeautifulSoup(content, self._parser) soup = BeautifulSoup(content, self._parser)
articletitle = soup.find("h2", class_="articletitle").get_text() articletitle = soup.find("h2", class_="articletitle").get_text()
if len(articletitle) > 0:
articletitle = soup.find("h2").get_text()
exist = False exist = False
for index in range(1,10): for index in range(1,10):
if exist is False: if exist is False: