3

I am developing chrome extension and from my javascript file, I am getting the url of the active tab. Now I want to pass this url to my python function in python code. How can I achieve this. I have tried few solutions posted here, but its no help. I need to send the "myurl" in the below code to my python function and get back results too.

chrome.tabs.query({currentWindow: true, active: true}, function(tabs){
    var myurl = tabs[0].url;
    console.log(myurl);
});
vinS
  • 1,417
  • 5
  • 24
  • 37
SoulD82
  • 93
  • 1
  • 9

1 Answers1

0

Try this, might works

System.Diagnostics.Process.Start("python.exe", "file.py");
youssef
  • 65
  • 1
  • 8