{"id":13743506,"url":"https://github.com/mchmarny/tsignal","last_synced_at":"2025-04-15T20:32:00.100Z","repository":{"id":57584676,"uuid":"91275533","full_name":"mchmarny/tsignal","owner":"mchmarny","description":"Analyzing social media sentiment and its impact on stock market","archived":false,"fork":false,"pushed_at":"2023-10-21T06:44:36.000Z","size":317,"stargazers_count":36,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-22T15:31:33.412Z","etag":null,"topics":["analytics","golang","nasdaq","nlp","sentiment-analysis","twitter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mchmarny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-05-14T22:34:58.000Z","updated_at":"2024-06-20T15:36:22.405Z","dependencies_parsed_at":"2024-06-20T15:52:01.237Z","dependency_job_id":null,"html_url":"https://github.com/mchmarny/tsignal","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/mchmarny%2Ftsignal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Ftsignal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Ftsignal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Ftsignal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mchmarny","download_url":"https://codeload.github.com/mchmarny/tsignal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249148024,"owners_count":21220464,"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":["analytics","golang","nasdaq","nlp","sentiment-analysis","twitter"],"created_at":"2024-08-03T05:00:49.074Z","updated_at":"2025-04-15T20:31:59.666Z","avatar_url":"https://github.com/mchmarny.png","language":"Go","funding_links":[],"categories":["Golang"],"sub_categories":["Sentiment Intensity Analyzer"],"readme":"# tsignal\nAnalyzing social media sentiment and its impact on stock market\n\n\u003e Personal project, does not represent Google\n\n![tsignal topology](/../master/images/tsignal-topology-small.png?raw=true \"tsignal topology\")\n\nThis Go app deploys into [GKE](https://cloud.google.com/container-engine/), subscribes to Twitter stream for all companies defined in the `Stocks` table in [Cloud Spanner](https://cloud.google.com/spanner/) and scores each event against the [Google NLP API](https://cloud.google.com/natural-language/) while comparing the user sentiment against the stock ask price against Yahoo API. \n\nEventually there will be a UI, for now, there are sample SQL scripts you can use to execute against the Cloud Spanner DB to analyze the data. \n\n![sample query](/../master/images/sample-query-result.png?raw=true \"sample query\")\n\n\u003e All GCP services used in this example can be run under the GCP Free Tier plan. More more information see https://cloud.google.com/free/\n\n## Configuration\n\nEdit the `scripts/config.sh` file with your Twitter API info. Alternatively\ndefine the following environment variables. Instructions how to configure your Twitter API access codes are found [here](http://docs.inboundnow.com/guide/create-twitter-application/):\n\n```\n# export T_CONSUMER_KEY=\"\"\n# export T_CONSUMER_SECRET=\"\"\n# export T_ACCESS_TOKEN=\"\"\n# export T_ACCESS_SECRET=\"\"\n```\n\n## Run\n\nOnce all the necessary environment variables are defined you can execute the `tsignal` appl locally `go run *.go` or use the included `Dockerfile` to create an image which you can then publish to the GCP (if needed, there is a script `build-publish` that will do all that for you.\n\n## Cleanup\n\nThe cleanup of all the resources created in this application can be accomplished by executing the `scripts/cleanup.sh` script.\n\n### TODO\n\n* Tests, yes please\n* UI for reports and config\n* Way to subscribe to non-NASDAQ stock prices \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmchmarny%2Ftsignal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmchmarny%2Ftsignal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmchmarny%2Ftsignal/lists"}