Add basic auth ureqeusts and elementtree for xml.

Implement nextcloud directory listing.
This commit is contained in:
2023-10-28 21:45:05 -04:00
parent 42a6326591
commit ae8bafc8c3
6 changed files with 336 additions and 8 deletions

View File

@@ -55,6 +55,12 @@ class Element:
def get(self, key, default=None):
return self.attrib.get(key, default)
def find_first_by_tag(self, tag):
for child in self:
if child.tag == tag:
return child
return None
def set(self, key, value):
self.attrib[key] = value