Sign up for Apify Platform here
Star Crawlee on GitHub
Star Crawlee for Python on GitHub
Apify and Crawlee Official Forum
New post
View all posts
Related posts
Did this answer your question?
๐
๐
๐
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Downloading File and saving to KV Store - Selenium Python
Downloading File and saving to KV Store - Selenium Python
Inactive
0
Follow
j
jb17_user
4 months ago
ยท
Hello,
I am trying to download a file (Excel) from a website and want to save it to the KV Store. The problem is that on clicking the download button, I cannot see where the file was downloaded.
How can I achieve this?
Thank you!
L
j
5 comments
Share
Open in Discord
L
Lukas Celnar
4 months ago
Hi , depending if you use playwright or puppeteer I would recommend you to checkout these two articles explaining what you might be trying to achieve
https://playwright.dev/docs/downloads
https://docs.apify.com/academy/puppeteer-playwright/common-use-cases/downloading-files
j
jb17_user
4 months ago
Thanks but I am using Selenium currently.
L
Lukas Celnar
4 months ago
Oh i see. In that case i found this great article
https://www.browserstack.com/guide/download-file-using-selenium-python
j
jb17_user
4 months ago
Hello ,
I already had that piece of code with
prefs
and
download.default_directory
but that still does not save the file to the directory I mentioned.
Also, I checked the path via
os.listdir()
but it does not list the downloaded file. Can you please help me with this?
j
jb17_user
4 months ago
Could it be because of the Docker volume?
Add a reply
Sign up and join the conversation on Discord
Join on Discord