CA
fascinating-indigo
Taking a screenshot with Selenium/Python
Hello team! I'm just starting out and would appreciate some help here. I'm running into an error that I don't have enough tools to understand unless I see the page that's being scraped visually, so I wanted to use the save_screenshot feature with Selenium. It seems like the code does take the screenshot, and according to my understanding from guides I read, it should be saved to the KeyValueStoarge, but after I run the code, I can't find it in the storage. What am I missing?
This is the piece of code I'm running on an Actor in the Apify platform:
Thanks in advance 🙂
7 Replies
Are you running in Apify cloud or locally? If locally, are you using Apify CLI?
fascinating-indigoOP•16mo ago
Hi Alexey! Thank you for the reply 🙂 Sorry I wasn't clear. I'm running this code inside an Actor in the Apify platform.
Does anyone here have any ideas/suggestions?
harsh-harlequin•16mo ago
Hi @HillaShx, could you please provide the complete code sample so we can reproduce it?
fascinating-indigoOP•16mo ago
Hi @Vlada Dusek! Thank you for your reply 🙂 Attached, the full context.
Hi.
Your code does not save the data in key-value, your code, just saves the png files in the folder where the code is called from.
You can use.
Then save the data to a key-value
fascinating-indigoOP•16mo ago
Yeah, it made sense to me that something is missing... Now it clicks for me! Thank you @Mantisus
Glad it helped )