Is it possible to compile JS code in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it possible to compile JS code in python?

want to collect data in a website which uses reactjs

27th Mar 2021, 10:13 PM
Mika Rn
Mika Rn - avatar
4 Answers
+ 1
Hello. Please explain.
27th Mar 2021, 10:18 PM
Makar Mikhalchenko
Makar Mikhalchenko - avatar
0
Luk, yes likewise! The deal is to extract all html code inside the "root" (or something like) so then I can collect things like .csv files directly by a python script
27th Mar 2021, 10:27 PM
Mika Rn
Mika Rn - avatar
0
Mika Rn Probably Selenium library can be used.
27th Mar 2021, 11:06 PM
Luk
Luk - avatar
0
as Martin Taylor stated, there could be legal concerns when web scraping. with that being said, you can use beautifulsoup or scrapy to at least read and extract data within html. some website may block http requests and you may need to use selenium to lod pages and beautifulsoup to extract the html data.
28th Mar 2021, 2:20 AM
you are smart. you are brave.
you are smart. you are brave. - avatar