I am facing problem while retrieving result from python script
my php script as follows:
<?php
$cmd=escapeshellcmd('/opt/lampp/htdocs/adpNews/adpScripts/getArticle.py');
$result=shell_exec("python $cmd");
echo $result;
?>
my Python script as follows:
#!/usr/bin/env python
from newspaper import Article
url=u'http://www.abplive.in/india-news/countering-terrorism-an-important-shared-objective-by-india-united-states-manohar-parrikar-407134'
article=Article(url)
article.download()
article.parse()
print article.text
Please do give me the solution