PlaywrightCapture 1.25.1__tar.gz → 1.25.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PlaywrightCapture
3
- Version: 1.25.1
3
+ Version: 1.25.2
4
4
  Summary: A simple library to capture websites using playwright
5
5
  Home-page: https://github.com/Lookyloo/PlaywrightCapture
6
6
  License: BSD-3-Clause
@@ -805,12 +805,6 @@ class Capture():
805
805
  except Exception as e:
806
806
  self.logger.warning(f'Could not find body: {e}')
807
807
 
808
- # fast forward 30s
809
- await page.clock.run_for(10000)
810
- await page.clock.resume()
811
- await self._wait_for_random_timeout(page, 5) # Wait 5 sec
812
- self.logger.warning('Moved time forward.')
813
-
814
808
  if parsed_url.fragment:
815
809
  # We got a fragment, make sure we go to it and scroll only a little bit.
816
810
  fragment = unquote(parsed_url.fragment)
@@ -870,6 +864,10 @@ class Capture():
870
864
  z.writestr(f'{i}_{filename}', file_content)
871
865
  to_return["downloaded_file"] = mem_zip.getvalue()
872
866
 
867
+ # fast forward 30s
868
+ await page.clock.run_for("30")
869
+ self.logger.debug('Moved time forward.')
870
+
873
871
  self.logger.debug('Done with instrumentation, waiting for network idle.')
874
872
  await self._wait_for_random_timeout(page, 5) # Wait 5 sec after instrumentation
875
873
  await self._safe_wait(page)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "PlaywrightCapture"
3
- version = "1.25.1"
3
+ version = "1.25.2"
4
4
  description = "A simple library to capture websites using playwright"
5
5
  authors = ["Raphaël Vinot <raphael.vinot@circl.lu>"]
6
6
  license = "BSD-3-Clause"