def _export_(self): self.logger.info('Récupération des émoticones') params = {"part": "themes", "sub": "avatars", "mode": "smilies"} response = self.session.get_admin("/admin/index.forum", params=params) for page in pages(response.text): self.add_child(SmiliesPage(page))
def _export_(self): self.logger.info('Récupération des membres') self.add_child(AnonymousUser()) response = self.session.get("/memberlist") for page in pages(response.text): self.add_child(OcrUsersPage(page))
def _export_(self): self.logger.info('Récupération du sujet %d -> %s', self.topic_id, self.title.ljust(15)[:15].strip()) self.root.current_topics += 1 self.ui.update() response = self.session.get("/t{}-a".format(self.topic_id)) for page in pages(response.text): self.add_child(TopicPage(page))
def _export_(self): self.logger.info("Récupération du sujet %d", self.topic_id) self.root.current_topics += 1 self.ui.update() response = self.session.get("/t{}-a".format(self.topic_id)) for page in pages(response.text): self.add_child(TopicPage(page))
def _export_(self): self.logger.info('Récupération du forum %s', self.oldid) response = self.session.get("/{}-a".format(self.oldid)) # Get subforums descriptions, number of topics, ... self.forums_node.get_subforums_infos(response.text) for page in pages(response.text): self.add_child(ForumPage(page))
def _export_(self): self.logger.info('Récupération des membres') self.add_child(AnonymousUser()) # Get the list of users from the administration panel params = {"part": "users_groups", "sub": "users"} response = self.session.get_admin("/admin/index.forum", params=params) for page in pages(response.text): self.add_child(UsersPage(page))
def _export_(self): self.logger.info('Récupération des émoticones') params = { "part" : "themes", "sub" : "avatars", "mode" : "smilies" } response = self.session.get_admin("/admin/index.forum", params=params) for page in pages(response.text): self.add_child(SmiliesPage(page))
def _export_(self): self.logger.info('Récupération du sujet %d', self.topic_id) self.root.current_topics += 1 self.ui.update() response = self.session.get("/t{}-{}".format(self.topic_id, self.topic_slug)) for page in pages(response.text): self.logger.debug("sujet {} page {}".format(self.topic_id, page)) self.add_child(TopicPage(page))
def _export_(self): self.logger.info('Récupération des membres') self.add_child(AnonymousUser()) # Get the list of users from the administration panel params = { "part" : "users_groups", "sub" : "users" } response = self.session.get_admin("/admin/index.forum", params=params) for page in pages(response.text): self.add_child(UsersPage(page))
def _export_(self): self.logger.info('Récupération du groupe %d', self.oldid) if self.oldid == 1: # Administrators group self.newid = 5 self.leader_name = self.config["admin_name"] else: self.newid = self.groups_count.value self.groups_count += 1 response = self.session.get("/g{}-a".format(self.oldid)) for page in pages(response.text): self.add_child(GroupPage(page))