- Install python
- Install pip
- Install Goose. On Ubuntu: pip install goose-extractor
- Install Flask on Ubuntu: https://www.digitalocean.com/community/tutorials/how-to-deploy-a-flask-application-on-an-ubuntu-vps
- sudo python /var/www/flaskapp/flaskapp/init.py
- Make a request. Here's an example: http://127.0.0.1:5000/api?url=http://www.bbc.com/news/world-us-canada-41134799
- Install python
- Install pip
- Install Goose
- Install Flask
- Create a Flask server
- cd to the folder where the flask python file apiServer.py is
- $ export FLASK_DEBUG=1
- $ export FLASK_APP=apiServer.py
- $ flask run
- Make a request. Here's an example: http://127.0.0.1:5000/api?url=http://www.bbc.com/news/world-us-canada-41134799
- http://flask.pocoo.org/docs/0.12/quickstart/#a-minimal-application
- Virual environments on mac: http://docs.python-guide.org/en/latest/dev/virtualenvs/
- Newspaper library: http://newspaper.readthedocs.io/en/latest/user_guide/install.html