Пример #1
0
 def _get_searchsv1(self) -> List:
     returned_list = []
     for row in sqlite.execute_query(self._path, self.SEARCHQUERYv1):
         search = Search(path=self._path,
                         browser=self.BROWSER,
                         term=row[0],
                         url=row[1],
                         title=row[2])
         returned_list.append(search.__dict__)
     return returned_list
Пример #2
0
    def _get_downloadsv1(self) -> List:

        returned_list = []
        for row in sqlite.execute_query(self._path, self.DOWNLOADSQUERYv1):
            download = Download(path=self._path,
                                browser=self.BROWSER,
                                site_url=row[0],
                                target_path=str(row[1]).replace("file://", ""),
                                end_time=row[2])
            returned_list.append(download.__dict__)
        return returned_list
Пример #3
0
    def _get_downloadsv2(self) -> List:

        returned_list = []
        for row in sqlite.execute_query(self._path, self.DOWNLOADSQUERYv2):
            download = Download(path=self._path,
                                browser=self.BROWSER,
                                site_url=row[0],
                                target_path=row[1],
                                start_time=row[2],
                                received_bytes=row[3],
                                total_bytes=row[4])
            returned_list.append(download.__dict__)
        return returned_list
Пример #4
0
 def _get_visitesv1(self) -> List:
     returned_list = []
     for row in sqlite.execute_query(self._path, self.VISITQUERYv1):
         visite = Visite(path=self._path,
                         browser=self.BROWSER,
                         title=row[0],
                         url=row[1],
                         visit_count=row[2],
                         visit_time=row[3],
                         from_url=row[4],
                         from_title=row[5])
         returned_list.append(visite.__dict__)
     return returned_list