0

this is my html code for the search bar rn

I want to connect my python code to this HTML code so that I can create a Youtuber object through the python code and apply different function. I want the Youtuber object to be created once the submit button has been pressed. Is there any way I can do this? Thanks

CypherX
  • 7,019
  • 3
  • 25
  • 37

1 Answers1

1

You want to call a python code when the submit button is pressed.

You could use this using AJAX or simple JavaScript. Check out the solutions suggested here.

  1. Call Python function from JavaScript code
  2. Call python function from JS
CypherX
  • 7,019
  • 3
  • 25
  • 37