I have looked all over but could not find an adequate solution for this. I have a Chrome Extension with JS and I need to be able to call a python script and pass in the current URL as a parameter. The JS gets the url of the current tab and has to somehow pass it into a python script which uses bs4 to scrape some data. I am very new to this so I am looking for a very minimal answer (sorry :( )
I need to send the "urlSend" in the below code to the python function and return the results back
chrome.tabs.query({active: true, lastFocusedWindow: true}, tabs => {
let urlSend = tabs[0].url;
//call python script somehow and pass in urlSend
});
How can this be achieved
Sorry if I did something wrong in the question as I am new to this. Thanks for the help