Is it possible to integrate python app with a php app? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it possible to integrate python app with a php app?

I'm building a website using PHP and JavaScript as the base language. I want to build of the site which will be able to craw Google with search string "dollar to pounds exchange rate" and return the actual rate from the search result. This can be achieved with python but I don't know if it is possible to integrate a python code with a website built with php. If it is possible please how can I achieve this or can it be done with Ajax call? Thanks.

12th Feb 2019, 12:40 PM
Michael Ifeanyi
Michael Ifeanyi - avatar
4 Answers
+ 4
Sure... A very simple way to do it s use this function http://php.net/manual/en/function.file-get-contents.php
13th Feb 2019, 7:19 PM
KrOW
KrOW - avatar
0
I think than using PHP directly is better
12th Feb 2019, 1:05 PM
KrOW
KrOW - avatar
0
But does PHP have the power to crawl through a website I mean getting the source html code as string. So that I can easily manipulate and get the values I want?
13th Feb 2019, 7:14 PM
Michael Ifeanyi
Michael Ifeanyi - avatar
0
Ok thanks much
14th Feb 2019, 3:40 PM
Michael Ifeanyi
Michael Ifeanyi - avatar