{"id":19901359,"url":"https://github.com/lissy93/london-underground-live-sentiment-analysis","last_synced_at":"2025-07-11T06:38:34.415Z","repository":{"id":34036764,"uuid":"37799078","full_name":"Lissy93/london-underground-live-sentiment-analysis","owner":"Lissy93","description":"A node modules that analyses recent Twitter feeds mentioning each London Underground line, and than uses HP IDOL OnDemand Sentiment Analysis to determine whether overall each line is receiving positive or negative tweets.","archived":false,"fork":false,"pushed_at":"2017-12-30T21:28:30.000Z","size":4,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T07:43:45.354Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Lissy93.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":"2015-06-21T06:17:43.000Z","updated_at":"2023-09-08T16:58:55.000Z","dependencies_parsed_at":"2022-07-14T02:40:38.325Z","dependency_job_id":null,"html_url":"https://github.com/Lissy93/london-underground-live-sentiment-analysis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lissy93/london-underground-live-sentiment-analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lissy93%2Flondon-underground-live-sentiment-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lissy93%2Flondon-underground-live-sentiment-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lissy93%2Flondon-underground-live-sentiment-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lissy93%2Flondon-underground-live-sentiment-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lissy93","download_url":"https://codeload.github.com/Lissy93/london-underground-live-sentiment-analysis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lissy93%2Flondon-underground-live-sentiment-analysis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264749642,"owners_count":23658247,"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-11-12T20:14:44.847Z","updated_at":"2025-07-11T06:38:34.400Z","avatar_url":"https://github.com/Lissy93.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TFL Twitter Sentiment Analysis\nA node modules that analyses recent Twitter feeds mentioning each London Underground line, and than uses HP IDOL OnDemand Sentiment Analysis to determine wheather overall each line is receiving positive or negetive tweets.\n\n\n\n##Usage\n###Inatall\n```\nnpm install git://github.com/Lissy93/london-underground-live-sentiment-analysis.git\n```\n\n### Include \n```\nvar tflSentimentAnalysis = require('tfl-sentiment-analysis');\n```\n\n### Authenticating\nYou will need to sign up for an API key at https://api-portal.tfl.gov.uk/signup, and also the HP OnDemand key at http://www.idolondemand.com/signup.html , both of which are free.\nCreate a JSON similar to this:\n```\nexports.HP_API_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';\n\nexports.TWITTER_API = {\n    CONSUMER_KEY        : \"xxxxxxxxxxxxxxxxxxxxxxxxx\",\n    CONSUMER_SECRET     : \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n    ACCESS_TOKEN_KEY    : \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n    ACCESS_TOKEN_SECRET : \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n};\n\n```\nYou should put it in a seperate file along with your other API keys and add file to your .gitignore\n\n### Make simple request\n```javascript\ntflSentimentAnalysis.fetchTflSentiments(keys, function(results){\n    console.log(results); // Do whatever with the results\n});\n```\n\n### Example Output\n```\n[ { line: 'DLR', sentiments: 'neutral', score: 0 },\n  { line: 'WaterlooCity', sentiments: 'neutral', score: 0 },\n  { line: 'Victoria',\n    sentiments: 'positive',\n    score: 0.5685799620527161 },\n  { line: 'Picadilly', sentiments: 'neutral', score: 0 },\n  { line: 'Bakerloo', sentiments: 'neutral', score: 0 },\n  { line: 'Central', sentiments: 'neutral', score: 0 },\n  { line: 'Overground', sentiments: 'neutral', score: 0 },\n  { line: 'Jubile', sentiments: 'neutral', score: 0 },\n  { line: 'District',\n    sentiments: 'negative',\n    score: -0.8177321332492695 },\n  { line: 'Metropolitan', sentiments: 'neutral', score: 0 },\n  { line: 'Northen', sentiments: 'positive', score: 0.48272937292926293 },\n  { line: 'Hammersmith', sentiments: 'neutral', score: 0 },\n  { line: 'Circle',\n    sentiments: 'negative',\n    score: -0.44023113875144726 } ]\n```\n\n[TFL]:https://api-portal.tfl.gov.uk/signup\n[@lissy_sykes]:http://twitter.com/lissy_sykes\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flissy93%2Flondon-underground-live-sentiment-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flissy93%2Flondon-underground-live-sentiment-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flissy93%2Flondon-underground-live-sentiment-analysis/lists"}