Skip to content

chore: Align crawlee generated templates wth apify-cli #1113

@Pijukatel

Description

@Pijukatel

Currently templates generated by crawlee are somewhat not compatible with apify-cli and templates in template repo have slightly different structure.

The apify-cli expects python project with src folder. For example project aaa

-aaa
--src
---__main__.py
...

But crawlee creates project that has sub folder name same as the project name

-aaa
--aaa
---__main__.py
...

This causes apify-cli to not work as expected. For example apify init throws warning and apify run does not even work at all with error:

Error: Actor is of an unknown format. Make sure either the 'package.json' file or 'src/main.py' file exists or you are in a migrated Scrapy project.

Maybe just use src folder name here in crawlee as well, to remove this template difference.

Metadata

Metadata

Assignees

Labels

t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions