CA
ambitious-aqua
Function not executing for a reason.
the does print the url. But after that, the code stops. The scripts work fine in vsc. I'm trying to integrate it with apify but I'm facing some issues.
3 Replies
like-gold•2y ago
hey, try to put the whole code in the Actor context manager: (under
async with Actor:
). You can read more about Actor lifecycles and alternatives here: https://docs.apify.com/sdk/python/docs/concepts/actor-lifecycleActor lifecycle | SDK for Python | Apify Documentation
Lifecycle methods
ambitious-aquaOP•2y ago
Already figured that out but ty anyways
@Kirada just advanced to level 2! Thanks for your contributions! 🎉