Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 703 Bytes

README.md

File metadata and controls

37 lines (23 loc) · 703 Bytes

tweet meter Api

A simple api built using flask that does sentimental analysis for tweeter
endpoint: https://4l5m7snv0h.execute-api.us-east-1.amazonaws.com/dev/search/

GET request example

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}

POST request example

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)