{"id":15906807,"url":"https://github.com/logancyang/yang-sentiment","last_synced_at":"2025-04-02T23:26:18.350Z","repository":{"id":71209236,"uuid":"204070245","full_name":"logancyang/yang-sentiment","owner":"logancyang","description":"Live twitter sentiment dashboard for Andrew Yang","archived":false,"fork":false,"pushed_at":"2019-10-19T00:02:33.000Z","size":173,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T13:42:56.909Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logancyang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-23T21:09:00.000Z","updated_at":"2020-09-25T21:33:51.000Z","dependencies_parsed_at":"2023-03-16T20:01:01.954Z","dependency_job_id":null,"html_url":"https://github.com/logancyang/yang-sentiment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logancyang%2Fyang-sentiment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logancyang%2Fyang-sentiment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logancyang%2Fyang-sentiment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logancyang%2Fyang-sentiment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logancyang","download_url":"https://codeload.github.com/logancyang/yang-sentiment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246907942,"owners_count":20853165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-06T13:41:49.346Z","updated_at":"2025-04-02T23:26:18.329Z","avatar_url":"https://github.com/logancyang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Live Tweet Sentiment Dashboard For Andrew Yang\n\nThis is a Flask app visualizing statistics and sentiment for tweets about Andrew Yang, the 2020 presidential candidate.\n\nThere is a streaming job that streams live tweets about Andrew Yang, Yang Gang and the Freedom Dividend to an AWS RDS Postgres database.\n\nThis Flask app consumes data in that database.\n\n## Development\n- Create a virtualenv folder `virtualenv -p python3.6 venv`\n- Activate `source venv/bin/activate`\n- Install the requirements `pip install -r requirements.txt`\n- Run Flask app\n\n```python\nFLASK_ENV=development python application.py\n```\n\nNote that the env variables are in `.env` and should be kept out of git securely.\n\n\n## Staging: Heroku Free Tier\n\nSometimes there are issues which only can be found on the server side, such as timezone problems. Staging is a great\nplace to test it. With the `Procfile` and automatic deployment from Github setup, we can deploy to Heroku by simply\n`git push -u origin master`.\n\nHeroku app url: https://andrewyangtrend.herokuapp.com/\n\n\n## Production: Deploy to AWS Beanstalk\n\nRefer to EB CLI instruction about how to setup and initialize an EB project properly.\n\nI'm using AWS Route 53 domain name and setting name servers in AWS Route 53 as well. GoDaddy is not the best experience, go with AWS Route 53 for domain names.\n\nAfter proper setup, to make update to the app, simply commit the code and run\n\n```\neb deploy\n```\n\nThe change will be live on http://www.andrewyangtrend.com after a couple of minutes.\n\n\n## References\n\n- Twitter API Tweet Object\n    - https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/tweet-object\n- AWS Elastic Beanstalk CLI\n    - https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3.html\n- AWS RDS Database Monitoring and Performance Check\n    - https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Monitoring.html\n- Alembic Database Autogenerate Migration\n    - https://alembic.sqlalchemy.org/en/latest/autogenerate.html\n- Statsmodels Linear Regression Coefficients and P-values\n    - https://stackoverflow.com/questions/47388258/how-to-extract-the-regression-coefficient-from-statsmodels-api\n    - https://stackoverflow.com/questions/41075098/how-to-get-the-p-value-in-a-variable-from-olsresults-in-python\n- Wordcloud\n    - http://amueller.github.io/word_cloud/auto_examples/simple.html#sphx-glr-auto-examples-simple-py\n- Add HTTPS to your website\n- Add Google Analytics to your website\n- AWS Kinesis Firehose\n- AWS Elasticsearch\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogancyang%2Fyang-sentiment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogancyang%2Fyang-sentiment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogancyang%2Fyang-sentiment/lists"}