How to install browsers on Zyte Scrapy cloud

Posted about 2 years ago by Tony Small

Post a topic
Un Answered
T
Tony Small

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!

0 Votes


2 Comments

Sorted by
T

Tony Small posted about 2 years ago

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

0 Votes

Bala Ravichandran

Bala Ravichandran posted about 2 years ago Admin

 Hi Tony,

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

1 Votes

Login to post a comment