Open aufche opened 7 years ago
Hello, dev
Maybe its a bug.
The code import newspaper
from newspaper import Article
berita = Article(url="http://opensourceforu.com/2016/07/22843/") berita.download() berita.parse()
print(berita.text.encode('utf-8'))
and i have php script to get returned string from python script
exec('python3 /var/www/ig.zavirajewelry.com/htdocs/pyton/berita.py', $output); print_r($output);
Its not working, but when i am remove import newspaper
print can passed to php script.
thanks
I am use ubuntu 14.04 & python 3.x
Does it work when you run the python script (python3 /var/www/ig.zavirajewelry.com/htdocs/pyton/berita.py) in the shell?
python3 /var/www/ig.zavirajewelry.com/htdocs/pyton/berita.py
Hello, dev
Maybe its a bug.
The code import newspaper
from newspaper import Article
berita = Article(url="http://opensourceforu.com/2016/07/22843/") berita.download() berita.parse()
print(berita.text.encode('utf-8'))
and i have php script to get returned string from python script
exec('python3 /var/www/ig.zavirajewelry.com/htdocs/pyton/berita.py', $output); print_r($output);
Its not working, but when i am remove import newspaper
print can passed to php script.
thanks
I am use ubuntu 14.04 & python 3.x