{"id":27233086,"url":"https://github.com/yukigeshiki/sentiment-analysis-cli-rust","last_synced_at":"2025-04-10T14:11:26.292Z","repository":{"id":216111813,"uuid":"740358702","full_name":"Yukigeshiki/sentiment-analysis-cli-rust","owner":"Yukigeshiki","description":"A CLI tool to perform simple sentiment analysis written in Rust, using a Rust port of VADER.","archived":false,"fork":false,"pushed_at":"2024-05-09T10:05:12.000Z","size":94,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-10T09:03:24.810Z","etag":null,"topics":["cli","rust","sentiment-analysis","vader-sentiment-analysis","webscraping"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yukigeshiki.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":"2024-01-08T07:24:31.000Z","updated_at":"2024-05-09T10:05:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"e05f8ad1-1a17-4eaa-864f-d1e9c44b2ddd","html_url":"https://github.com/Yukigeshiki/sentiment-analysis-cli-rust","commit_stats":null,"previous_names":["yukigeshiki/sentiment-analysis-cli-rust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yukigeshiki%2Fsentiment-analysis-cli-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yukigeshiki%2Fsentiment-analysis-cli-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yukigeshiki%2Fsentiment-analysis-cli-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yukigeshiki%2Fsentiment-analysis-cli-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yukigeshiki","download_url":"https://codeload.github.com/Yukigeshiki/sentiment-analysis-cli-rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248232437,"owners_count":21069487,"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":["cli","rust","sentiment-analysis","vader-sentiment-analysis","webscraping"],"created_at":"2025-04-10T14:11:25.821Z","updated_at":"2025-04-10T14:11:26.282Z","avatar_url":"https://github.com/Yukigeshiki.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sentiment-analysis-cli-rust\n\n[![build](https://github.com/Yukigeshiki/sentiment-analysis-cli-rust/actions/workflows/ci.yml/badge.svg)](https://github.com/Yukigeshiki/sentiment-analysis-cli-rust/actions/workflows/ci.yml)\n\nA CLI tool to perform simple sentiment analysis written in Rust, using a Rust port of [VADER](https://github.com/ckw017/vader-sentiment-rust).\n\nAnalysis can be performed on a text file or text within an HTML file. For HTML, you can supply a path to a file locally, or you can scrape HTML from the web. Currently, a CSS selector is used to specify the HTML element which contains the required text, but I hope to add xpath functionality in the future too.\n\n### How to run:\n\nFirst make sure you have Rust installed. To do this you can follow the instructions found [here](https://www.rust-lang.org/tools/install).\n\nClone the repo, cd into it and run:\n\n```bash\ncargo build --release\n```\n\nTo run for a text file:\n\n\n```bash\n./target/release/sentiment analyse text -p path/to/file/foo.txt\n```\n\nTo run for an HTML file:\n\n```bash\n./target/release/sentiment analyse html -p path/to/file/foo.html -s \"div \u003e div \u003e p\"\n```\n\nTo scrape and run for a webpage:\n\n```bash\n./target/release/sentiment analyse html -p https://page-to-scrape.com -s \"div \u003e div \u003e p\"\n```\n\nFor more info about the CLI tool, run:\n\n```bash\n./target/release/sentiment help\n```\n\nor\n\n```bash\n./target/release/sentiment analyse help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukigeshiki%2Fsentiment-analysis-cli-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyukigeshiki%2Fsentiment-analysis-cli-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukigeshiki%2Fsentiment-analysis-cli-rust/lists"}