[go: up one dir, main page]

Skip to content

Yangjianxiao0203/EC601API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UserStory:
I wanna analyze what people think about covid.
I wanna use tweepy to get all users' contents and use NLP to classify the content and find out what most people are talking about.
Meanwhile, I wanna use NLP to analyze their syntax and find out how most people feel.
My model are for those who want to know the current trend.

Work currently down:
1. import Tweepy and test the function of grasping data from recently uploaded contents
2. import NLP and write four functions to analyze their sentiments and emotions, topics they talk.


 1. To connect with google cloud: Need to set up a service account and the key
 Reference: https://www.youtube.com/watch?v=iqRgOdJZtiY
 wibsite: https://console.cloud.google.com/iam-admin/serviceaccounts/details/111273889594197677930;edit=true?project=jianxiao602nlp&supportedpurview=project

 2. I recommend to build an virtual environment (not use iPython on google)
    reference:https://cloud.google.com/python/docs/setup

 3. to echo environment path on venv:https://www.roelpeters.be/set-environment-variables-in-virtual-environment-python/
    import os
    path="/Users/jianxiaoyang/Downloads/jianxiao602nlp-d001e4497302.json"
    path2="/Users/jianxiaoyang/Documents/EC601 software/google nlp api/jianxiao602nlp-d001e4497302.json"
    os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = path2


twitter v2 api:
reference:https://github.com/twitterdev/getting-started-with-the-twitter-api-v2-for-academic-research
            https://developer.twitter.com/en/docs/twitter-api/expansions
            https://www.youtube.com/watch?v=0EekpQBEP_8


Analyzed data will be posted on data.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages