Skip to content

Executing commands on scrapinghub cloud #430

@hamzza-K

Description

@hamzza-K

Hi,
I'm trying to deploy my spider that uses playwright (scrapy-playwright for integration). I have the following configuration:
scrapinghub.yml

requirements:
  file: requirements.txt
cmd:
- export PATH=/app/python/bin:$PATH
- playwright install
- playwright install-deps

I can see that modules get successfully installed in the deploy logs but how can I execute the following commands since playwright needs it after fresh installation. I couldn't find anything related to this in all of the zyte documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions