pylookyloo 1.21.1__tar.gz → 1.22.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pylookyloo might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pylookyloo
3
- Version: 1.21.1
3
+ Version: 1.22.0
4
4
  Summary: Python CLI and module for Lookyloo
5
5
  Home-page: https://github.com/lookyloo/PyLookyloo
6
6
  License: BSD-3-Clause
@@ -347,6 +347,14 @@ class Lookyloo():
347
347
  r = self.session.get(urljoin(self.root_url, str(Path('bin', capture_uuid, 'screenshot'))))
348
348
  return BytesIO(r.content)
349
349
 
350
+ def get_data(self, capture_uuid: str) -> BytesIO:
351
+ '''Returns the downloaded data.
352
+
353
+ :param capture_uuid: UUID of the capture
354
+ '''
355
+ r = self.session.get(urljoin(self.root_url, str(Path('bin', capture_uuid, 'data'))))
356
+ return BytesIO(r.content)
357
+
350
358
  def get_cookies(self, capture_uuid: str) -> List[Dict[str, str]]:
351
359
  '''Returns the complete cookies jar.
352
360
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pylookyloo"
3
- version = "1.21.1"
3
+ version = "1.22.0"
4
4
  description = "Python CLI and module for Lookyloo"
5
5
  authors = ["Raphaël Vinot <raphael.vinot@circl.lu>"]
6
6
  license = "BSD-3-Clause"
@@ -39,8 +39,8 @@ Sphinx = [
39
39
  ]
40
40
 
41
41
  [tool.poetry.group.dev.dependencies]
42
- mypy = "^1.5.1"
43
- types-requests = "^2.31.0.4"
42
+ mypy = "^1.6.0"
43
+ types-requests = "^2.31.0.9"
44
44
  ipython = [
45
45
  {version = "<8.13.0", python = "<3.9"},
46
46
  {version = "^8.13.0", python = ">=3.9"}
File without changes
File without changes