apankowski / doc88-downloader

POC: download documents from doc88.com as images and convert them to searchable PDFs
Other
86 stars 31 forks source link

Manual version stops after preloading page 1 #19

Open kleinerPanzer opened 1 week ago

kleinerPanzer commented 1 week ago

Bug description When using manual option (pasting JS into console) and attempting to download pages, the script stops running after preloading the first page.

Reproduction steps Steps to reproduce the behavior:

  1. Instructions followed as Option B described up until requesting 'downloadPages()'
  2. 'downloadPages()' entered

Expected behavior Pages would download in a zip folder.

Environment

Additional context Same result occurred with a few other parameters tried within 'downloadPages()'

apankowski commented 1 week ago

Thank you for the detailed report, that's very helpful.

Unfortunately I cannot reproduce it on my end.

Installed fresh Opera GX on Windows 11, pasted the code and run downloadPages(). Everything worked as expected. Did the same with classic Opera - again, no problems. Tried repeating this a couple of times - again, without problems.

Screenshots:

image

image

Couple potential things that come to mind:

  1. Have you tried repeating the process? Does it always fail for this page?
  2. Have you tried other doc88 documents? Does it also repeatedly fail?
  3. Do you have any browser extensions or apps that modify or interact with the DOM? Things like: 3rd party AdBlock (tests above were with the one Opera offers out of the box), 1password browser extension, antivirus browser integration, etc.
  4. Do you have an unreliable internet connection?
kleinerPanzer commented 5 days ago
  1. Yes, it fails every time.
  2. It also fails for other documents
  3. Disabling the built-in adblock did not change the outcome, and disabling all other extensions (of which I have very few) still did not fix it.
  4. Internet connection is stable

However, opening it up in an incognito tab actually fixed the issue.

I also got this message once, which I cannot seem to reproduce: image