dramatic-maroonD
Apify & Crawleeβ€’2y agoβ€’
3 replies
dramatic-maroon

Using the Actor instance across multiple files

Hi, how can i use the same actor instance across multiple functions defined in seperate files?

for example, if I define an Actor in the main.py file as:

async with Actor:
(some code)


How do i use Actor.log.info() in another function that is called from the main script?

Would appreciate any help in this.
Was this page helpful?