1
I need to feed a page html
that will load and display the content dynamically with ajax/fetch
. The problem is that I need to take this data from other websites that also upload this content through ajax
, so I can’t make the requisitions for these pages with ajax
because they returned me only the html
basics without the information I need.
The solution I found was to do the web scraping
with python(selenium)
and pass the data to my page, but I can’t find a way to execute my script python
so I don’t have to use django
(and change my entire project) or write files that are constantly read by python
and manage access. I also saw some things related to CGI
, but it seems to me not to be what I’m looking for because it shows the elements printing the tags, but I need to load dynamically, besides preferring to receive this data as json
, xml
...
Is there any way to run a script python
similar a script php
which is called in the tag <form>
?
OBS: alternative solutions can help but at first wanted something with these tools or this way.
There is no need to migrate everything to Django. You can use a lightweight framework like Flask.
– Fábio Batista