-
Notifications
You must be signed in to change notification settings - Fork 1.4k
How to download PDF that requires a button click to print #3083
-
Hey, on the website i scrape, I have a button that opens the PDF viewer in Chrome when clicked, there a workaround to do this without opening the viewer or something specially without automating the Chrome Viewer?
Also is i possible to change the file name before saving it? thanks!
Beta Was this translation helpful? Give feedback.
All reactions
Set external_pdf to True:
Replies: 1 comment 6 replies
-
Set external_pdf to True:
Beta Was this translation helpful? Give feedback.
All reactions
-
None is the default value.
You have to set it to True.
Beta Was this translation helpful? Give feedback.
All reactions
-
I did, it still did not help it simply opens the chrome print view. Maybe its because im on Windows?
with SB(uc=True, proxy=proxy_url, incognito=True, external_pdf=True) as sb:
Beta Was this translation helpful? Give feedback.
All reactions
-
You have to click on the file link directly to download it automatically when using external_pdf=True. If that isn’t working, then not sure.
Beta Was this translation helpful? Give feedback.
All reactions
-
I click on the "print" button when external_pdf=True and the normal chrome print webview is showing, nothing else is happening, I guess its again bug with windows
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi,
The problem doesn't seem to be related to Windows.
I am using with SB(external_pdf=True, uc=True, locale_code="en", headed=True) as sb:
on Linux and pdf are still displayed in the internal pdf viewer by Chrome.
Beta Was this translation helpful? Give feedback.