Linked Questions
15 questions linked to/from How do I call a Javascript function from Python?
1
vote
0
answers
152
views
Call js function from python [duplicate]
I have a js file with:
function hi (){
console.log("Hello world!");
return 'hello';
}
And I want to call this function from my python code. I'm using the naked lib, so I run something like this:
...
20
votes
6
answers
40k
views
Click the javascript popup through webdriver
I am scraping a webpage using Selenium webdriver in Python
The webpage I am working on, has a form. I am able to fill the form and then I click on the Submit button.
It generates an popup window( ...
5
votes
3
answers
14k
views
Call Javascript from python
I am looking for a way to call a js function from a python function. I am coming to you because I also need my js function to use DOM, so pyv8 for example is not a solution.. Do you guys have any idea?...
8
votes
1
answer
6k
views
Execute Javascript method on web page from Python
I am writing a web scraper for a particular webpage and I am doing this with "urllib2.Request(MyURL)" and "BeautifulSoup" but the problem is that there is a Paging on page in MyURL and the next page ...
1
vote
2
answers
4k
views
Use Python to call a JavaScript function that is on a webpage
I created a webpage that has one JavaScript function called foo(z). For the sake of this question, let's assume that all foo(z) does is call console.log(z).
Is it possible to run a Python script that ...
0
votes
1
answer
2k
views
How to convert Curl to Python request code?
I want to make a curl to python converter.
curl -X POST -H "data1:value1" -H "data2:value2" -d "{"datapart1":"random1","datapart2":"random2&...
0
votes
2
answers
801
views
How to Run Javascript code from Python pandas? Convert to csv method
I have been working Python pandas DF. I usually Load a csv files, but at the same time I have excel files too. I find out pandas is very slow reading Excel files. I have JavaScript code that will ...
0
votes
0
answers
759
views
How to Load a javascript file and execute its functions with given parameters in Python 3.4?
For example, a js file called x.js (it's very simple just for explanation):
function func2(x, y) {
return x + y
}
function func1(x, y) {
return func2(x, y)
}
Now the module name is jstopy:
...
0
votes
0
answers
472
views
Encrypt value in Python for JSON request
I am trying to create a scraper in Python which sends json.load requests and pull the required data.
The webpage I'm trying to scrape has a search box which passes the json data after encrypting the ...
2
votes
1
answer
319
views
Run python from javascript
I have implemented an accelerometer Reader in python and I want to execute a function in a javascript file when a new value is read that will:
1 - update the value in a database
2 - broadcast the new ...
0
votes
0
answers
228
views
How to get the hover clickData of highcharts using Dash in python?
Can anyone please help me, how to get the hover data by clicking on any point of highchart plots using dash and python. The code and dataset is given below for plotting the highchart bar plot.
code
...
0
votes
1
answer
201
views
Call JavaScript (3rd party library) from Python
I've already searched quite a bit but came to now clear conclusion as some projects (pyv8) seem to be dead and I'm not sure if that is suitable at all. The 3rd part lib requires a DOM, eg. a container ...
0
votes
1
answer
140
views
web scraping: Iterate over pages of a site without can edit url with Python and Requests
I'm extracting the data from this reseller site for cars, but I can not find a way to iterate over the pages. I usually iterate by altering some index present in the url, but in the url of that site ...
0
votes
0
answers
66
views
run a javascript function inside a python
I'm working on a project. I have a strings.py which has dicts like below:
def bar(self):
#do something
STRINGS_ENGLISH = {
'title': 'foo'
'function': bar
}
then I wanna use this string ...
0
votes
0
answers
33
views
Can I replace my Tkinter UI with a Javascript UI? [duplicate]
I'd like to write a Javascript UI to download my Goodreads' private group's Bookshelf. I have a working Python program with a tkinter interface right now.
OLD QUESTION: My primary question is "Is ...