This project is no longer maintained; please consider using https://github.com/ubergonmx/newsmead-api instead.
A news recommender API built with Flask/Python for the NewsMead mobile app.
- Python
- Flask
- Azure Services: Web App
API URL: https://newsmead.azurewebsites.net/
List of GET endpoints:
/feed
- returns articles scraped from Google News/top
- returns top headline articles from News API/search?q=[query]
- returns articles searched with the query and scraped from Google News/parse?url=[url]
- returns scraped content of the article from the given url
Note: Must have Python version 3.9 for recommenders package.
- Install requirements
pip install -r requirements.txt
- Go to
/flask
directory
cd flask
- Run Flask
flask run
# or
python -m flask run