Ngrok, python, API

Job ID: 37362262

Budget: €8 – €30 EUR

Set up a local API endpoint on the automation script's Windows system:
Modify your automation script code to include a local API endpoint using a library like Flask or Django.
This local API endpoint will listen for incoming requests from the Django application.

Expose the local API endpoint to the internet:
To enable communication between the Django application and the automation script, you need to expose the automation script's local API endpoint to the internet.
This can be achieved by using a tool like ngrok, which creates a secure tunnel to your automation script's local API endpoint and provides a public URL.

Configure the Django application to send requests to the exposed API endpoint:
In the Django application, you would update the code to send requests to the public URL provided by ngrok, which forwards the requests to the automation script's local API endpoint.
You can use the requests library in Python to make the HTTP requests from the Django application to the ngrok URL.
Related categories: Python Web Scraping Software Architecture