Start a new topic

How to install browsers on Zyte Scrapy cloud

I have a project that requires playwright (reads pages that use javascript.)


I update the requirements and scrapinghub files to note this dependency, but now I get an error when I run it saying I still need to run "playwright install" to install the actual browsers.


How can I do that (maybe through a command line) on the Zyte/scrappy cloud?


Thanks!


 Hi Tony,

Please refer to the attached sample project and see if it helps.

zip

Thanks!  Just for reference, is the key recommendation to use what you put in the dockerfile?  I think so, but not sure.  

Login to post a comment