mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Fix tut crawling
This commit is contained in:
parent
c824ae4f6d
commit
98a2b5db34
@ -91,6 +91,10 @@ class ILIAS:
|
||||
def _find_dirs(self, soup):
|
||||
dirs = []
|
||||
|
||||
found = soup.find_all("div", {"class": "alert", "role": "alert"})
|
||||
if found:
|
||||
return []
|
||||
|
||||
found = soup.find_all("a", {"class": "il_ContainerItemTitle", "href": self.DIR_RE})
|
||||
for element in found:
|
||||
dir_name = element.string.strip()
|
||||
|
Loading…
Reference in New Issue
Block a user