I wonder if there is kind of architecture for more complex actor projects.
I scrap many different sites and write a specific actor for each individual site.
This is the way I do it by now:
- I copy another actor project
- rename the project folder, rename the description of the actor in the apify.json and package.json file
- install the apify package and all the other npm-packages I use
- modify the main.js file
I have coupled some of the more general functionality in a local project that I import using
If I want to use apify cloud and the github integration for automated builds I would have to initialize a github repo on each of my actor projects.
But this process seems like a bad project structure with a lot of equal files.
I thought I could merge all actor-projects into one. Implementing each actor in a different file (
actorWZ, etc.) and modify the package.json file to run multiple files on start.
Would you suggest this way or is there a more elegant way to organize complex Actor projects on apify cloud?