A simple api built using flask that does sentimental analysis for tweeter
endpoint: https://4l5m7snv0h.execute-api.us-east-1.amazonaws.com/dev/search/
import requests
query = '#ucl'
payload = {'query':query}
res = requests.get('https://4l5m7snv0h.execute-api.us-east-1.amazonaws.com/dev/search/',params=payload)
data = res.json()
print(data)
#prints {'negative': 14, 'neutral': 40, 'positive': 44}
import requests
query = '#ucl'
payload = {'query':query}
res = requests.post('https://4l5m7snv0h.execute-api.us-east-1.amazonaws.com/dev/search/',json=payload)
data = res.json()
print(data)