Skip to content

A REST api for tweeter sentimental analysis built using Flask

Notifications You must be signed in to change notification settings

DANIELKAKAI/tweet-meter-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A REST api for tweeter sentimental analysis built using Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages