Javascript execution through Python

I am trying to create an html document parser with Python. I am very familiar with jQuery, and I would like to use its move functions to parse these html files and return the data collected using jQuery back to my Python program.

Is it possible to use javascript scripts through Python? Or is it just a pipe dream?

+3
source share
4 answers

You may not need to do this. There is a Python module called PyQuery that directly emulates the jQuery API. It works exactly as you would expect it in almost every way. Give him a chance!

+6

jQuery HTML/XML. . , , Javascript Python, .

+1

jQuery HTML - DOM. (, WebKit), jQuery HTML.

+1

, , , python-javascript, Pajamas http://pyjs.org/, PyPy http://codespeak.net/pypy/dist/pypy/doc/, skulpt http://www.skulpt.org/. PyXPCOM http://pyxpcomext.mozdev.org/ python firefox xpi- ( , )

0
source

Source: https://habr.com/ru/post/1768264/


All Articles