RapidTech1898
CACrawlee & Apify
•Created by RapidTech1898 on 5/30/2025 in #apify-platform
Store image to key-value-store?
I think i found the solution - using the following code:
picLink = "https://rapidtech1898.com/wp-content/uploads/2023/11/openai_dall_created-560x320.png"
resp = requests.get(picLink, stream=True)
await kvs.set_value('explicit_image', resp.content, content_type='image/png')
4 replies
CACrawlee & Apify
•Created by RapidTech1898 on 5/28/2025 in #apify-platform
Writing pdf / jpeg / zip to key-value-store?
I think this is a list about the possible MIME Types:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types/Common_types
9 replies
CACrawlee & Apify
•Created by RapidTech1898 on 5/28/2025 in #apify-platform
Writing pdf / jpeg / zip to key-value-store?
Thanks will try this for the images like you described it.
But i can´t find any resource where to see which contentTypes generally are avaiable and how this can be done for pdf and/or zip files.
Further help about this would be appreciated.
9 replies
CACrawlee & Apify
•Created by RapidTech1898 on 5/27/2025 in #apify-platform
Debugging with keystroke using async actor?
Hello - thanks for the response -
I tried it this way:
async def main() -> None:
async with Actor: await Actor.set_status_message('Starting actor...') asyncio.to_thread(input, "Press Enter...") But its not stopping in any way with that.
async with Actor: await Actor.set_status_message('Starting actor...') asyncio.to_thread(input, "Press Enter...") But its not stopping in any way with that.
5 replies
CACrawlee & Apify
•Created by RapidTech1898 on 5/25/2025 in #apify-platform
Error when running basic example from documentation
I upgrade to the actual python-version v13 (had v9) - and then it worked without problems
5 replies