How to deploy browserless v1 on a private python fastapi github repo
vihardesu
PROOP

a year ago

Hi, I have a deployed instance of a fastapi python api in Railway. I try to set up Selenium and was told to use browserless. I'm now trying to get my code into the browserless deployment. How can i do this?

- i want to make a private github repo that contains my python selenium code

- i want to use that code in the browserless deployment so i can expose an api endpoint with my scraping logic to another service

Solved

3 Replies

a year ago

Hello,

So little misunderstanding here, you do not deploy code into the Browserless deployment.

Browserless is a self host-able API, and you connect to it via your already deployed code.

I see that you have deployed Browserless into its own project, please delete that project and then deploy Browserless into the same project that already has your API deployed into it, see our docs on why I'm asking you to do this -

https://docs.railway.com/overview/best-practices#deploying-related-services-into-the-same-project

Once you have Browserless deployed into the same project, you can consult this example for Python and Selenium to see what code changes you need to make to get your code to connect to Browserless instead trying to spawn a Chrome instance -

https://github.com/brody192/selenium-example-python

Best,
Brody


Status changed to Awaiting User Response Railway about 1 year ago


vihardesu
PROOP

a year ago

This worked! Thanks so much for clarifying and very much appreciate the fast response. Hopefully this thread is useful for others as well


Status changed to Awaiting Railway Response Railway about 1 year ago


a year ago

Awsome, glad I could help!


Status changed to Awaiting User Response Railway about 1 year ago


Status changed to Solved brody about 1 year ago


Loading...