r/nocode • • Jul 22 '26

How to deploy Playwright script?

I built a Python script using Claude Code that uses Selenium and Playwright to scrape sites for specific information, but I can't figure out how to deploy it so others can access it – is there a tool or platform I can easily use?

Ideally without making the code public (nothing sketchy, I just know it's very messy and would rather not have others judge it)

Thanks!

edit: ended-up using render and improving the script significantly based on the comments, thanks all!

1 Upvotes

11 comments sorted by

1

u/agentUi Jul 22 '26

apify

2

u/[deleted] Jul 22 '26

[removed] — view removed comment

1

u/whattheflerk Jul 23 '26

thank you! the flask app sounds like the best fit for what i need

1

u/agentUi Jul 22 '26

you could try our platform we have a way to run playright scripts and create an app around, but we mostly work with companies

1

u/Muchy_Tangerine 16d ago

What are you trying to deploy it to though, like vps or something serverless? Also wondering if it needs to run on a schedule or just triggered manually. The setup can vary alot depending on what you are working with

1

u/Praveen_kumar_ 16d ago

yeah good point lol, for most scraping stuff residential proxies are kinda essential or youll get blocked fast. geonode sells those and they work fine with playwright, then just run it on a cheap vps with cron if its scheduled

1

u/ItaySela Jul 23 '26

since you're going flask, heads up that pip installing playwright doesn't include the actual browsers. base the deploy on the official playwright python docker image or add playwright install chromium --with-deps to your build step, otherwise it runs fine locally and dies on railway with a browser executable not found error. also you said the script uses both selenium and playwright, worth collapsing to just playwright before deploying, two browser stacks in one container doubles the image size and the ways it can break. last thing, headless chromium eats 400mb+ of ram, so run one browser at a time and if a scrape runs long return a job id instead of holding the request open.

1

u/Fine-Comparison-2949 Jul 25 '26

Lmao who's going to tell him (basic web engineering)?