{"id":18272285,"url":"https://github.com/maximrouiller/redditemotionanalyzer","last_synced_at":"2025-09-17T11:32:53.994Z","repository":{"id":56289795,"uuid":"254105909","full_name":"MaximRouiller/RedditEmotionAnalyzer","owner":"MaximRouiller","description":"Takes the first 200 comments out of a Reddit Thread and generate an average emotion for a Reddit post. ","archived":false,"fork":false,"pushed_at":"2020-11-16T16:25:31.000Z","size":184,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-01T07:25:20.738Z","etag":null,"topics":["azure","emotion-detection","reddit"],"latest_commit_sha":null,"homepage":"","language":"C#","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/MaximRouiller.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}},"created_at":"2020-04-08T14:08:13.000Z","updated_at":"2022-01-12T14:18:30.000Z","dependencies_parsed_at":"2022-08-15T16:01:11.421Z","dependency_job_id":null,"html_url":"https://github.com/MaximRouiller/RedditEmotionAnalyzer","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/MaximRouiller%2FRedditEmotionAnalyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximRouiller%2FRedditEmotionAnalyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximRouiller%2FRedditEmotionAnalyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximRouiller%2FRedditEmotionAnalyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaximRouiller","download_url":"https://codeload.github.com/MaximRouiller/RedditEmotionAnalyzer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233378901,"owners_count":18667392,"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":["azure","emotion-detection","reddit"],"created_at":"2024-11-05T11:41:50.026Z","updated_at":"2025-09-17T11:32:48.640Z","avatar_url":"https://github.com/MaximRouiller.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reddit Thread Emotion Analyzer\n\nThis sample requests the `JSON` file related to a reddit thread by doing an HTTP request on a Reddit URL and appending `.json` at the end of it.\n\nThis JSON file contains data about the thread as well as the first 200 comments of a thread.\n\n## Prerequisites\n\nYou will need the following:\n\n* Latest LTS of .NET Core\n* Azure Account ([free trial available](https://azure.microsoft.com/free/?WT.mc_id=academic-0000-marouill))\n* Create a Cognitive Services Text Analytics service (see below)\n* Creating a `local.settings.json` file\n  * `CognitiveServices_Key` environment variable containing the Cognitive Services Key\n  * `CognitiveServices_Endpoint` environment variable containing the Cognitive Services Endpoint\n\n## Deploy Sample Resources\n\nAll necessary resources to deploy this sample will be deployed by clicking on the following button.\n\n[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/?WT.mc_id=academic-0000-marouill#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FMaximRouiller%2FRedditEmotionAnalyzer%2Fmaster%2Fdeployment%2Ftemplate.json)\n\n## Build\n\nWe need to first clone the repository.\n\n```bash\ngit clone https://github.com/MaximRouiller/RedditEmotionAnalyzer\n```\n\n### With Visual Studio\n\nOpen up `RedditEmotionAnalyzer.App\\RedditEmotionAnalyzer.App.sln` by double clicking on it.\n\nUse the menu `Build \u003e Build Solution` and the solution will compile and be ready for use.\n\nUse the `Debug \u003e Start Debugging` to launch the Azure Functions process\n\n### With Code\n\nOpen up the folder `RedditEmotionAnalyzer.App`.\n\nUse the menu `Terminal \u003e Run Build Task...` and the solution will compile and be ready for use.\n\nUse the `Run \u003e Start Debugging` to launch the Azure Functions process\n\n## Running an example\n\nOnce your application is launched, you just need to open up a browser and use a Reddit thread in the `url` parameter.\n\nThe following example return the results immediately. \n\n```none\nhttp://localhost:7071/api/AnalyzeRedditThread?url=\u003cURL\u003e\n\nhttp://localhost:7071/api/AnalyzeRedditThread?url=https://www.reddit.com/r/dotnet/comments/ftsjhp/what_did_you_all_do_this_week/\n```\n\nThis example returns a URL on which to check the status of the request. This uses Azure Durable functions.\n\n```none\nhttp://localhost:7071/api/RedditThreadAnalyzer_HttpStart?url=\u003cURL\u003e\n\nhttp://localhost:7071/api/RedditThreadAnalyzer_HttpStart?url=https://www.reddit.com/r/dotnet/comments/ftsjhp/what_did_you_all_do_this_week/\n```\n\nIt returns the following payload.\n\n```json\n{\n    \"id\": \"1ce610e87165442d88895b23a3f756ec\",\n    \"statusQueryGetUri\": \"http://localhost:7071/runtime/webhooks/durabletask/instances/1ce610e87165442d88895b23a3f756ec?taskHub=TestHubName\u0026connection=Storage\u0026code=uWgiCct6AA/mmvrY/hNE38V/vcrdMDaKypT3FItIuzvh95bQFCTYuA==\",\n    \"sendEventPostUri\": \"...\",\n    \"terminatePostUri\": \"...\",\n    \"purgeHistoryDeleteUri\": \"...\"\n}\n```\n\nQuerying the `statusQueryGetUri` from the browser will return the status of the processing. Once completed, we're going to have the following payload.\n\n```json\n{\n    \"name\": \"RedditThreadAnalyzer\",\n    \"instanceId\": \"eef70ba78ee14cdeaa0330de4a7c85ce\",\n    \"runtimeStatus\": \"Completed\",\n    \"input\": \"https://www.reddit.com/r/dotnet/comments/ftsjhp/what_did_you_all_do_this_week/.json\",\n    \"customStatus\": null,\n    \"output\": {\n        \"Positive\": 31.506849315068493,\n        \"Negative\": 17.80821917808219,\n        \"Neutral\": 27.397260273972602,\n        \"Mixed\": 23.28767123287671\n    },\n    \"createdTime\": \"2020-04-08T12:46:46Z\",\n    \"lastUpdatedTime\": \"2020-04-08T12:46:52Z\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximrouiller%2Fredditemotionanalyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximrouiller%2Fredditemotionanalyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximrouiller%2Fredditemotionanalyzer/lists"}