{"id":13463804,"url":"https://github.com/jodevsa/subscene_scraper","last_synced_at":"2025-03-25T09:31:07.895Z","repository":{"id":57373977,"uuid":"64886992","full_name":"jodevsa/subscene_scraper","owner":"jodevsa","description":"Library to download subtitles from subscene.com","archived":true,"fork":false,"pushed_at":"2019-10-31T14:38:36.000Z","size":2744,"stargazers_count":13,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T16:21:22.066Z","etag":null,"topics":["automation","scraping","subscene","subtitles"],"latest_commit_sha":null,"homepage":"","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/jodevsa.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":"2016-08-03T23:46:37.000Z","updated_at":"2024-08-14T13:08:01.000Z","dependencies_parsed_at":"2022-09-17T16:52:02.814Z","dependency_job_id":null,"html_url":"https://github.com/jodevsa/subscene_scraper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jodevsa%2Fsubscene_scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jodevsa%2Fsubscene_scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jodevsa%2Fsubscene_scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jodevsa%2Fsubscene_scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jodevsa","download_url":"https://codeload.github.com/jodevsa/subscene_scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245435100,"owners_count":20614827,"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":["automation","scraping","subscene","subtitles"],"created_at":"2024-07-31T14:00:28.754Z","updated_at":"2025-03-25T09:31:06.815Z","avatar_url":"https://github.com/jodevsa.png","language":"JavaScript","funding_links":[],"categories":["NodeJS"],"sub_categories":["Gists"],"readme":"# Project Name\n\n### subscene_scraper\n#\n#\n[![asciicast](https://asciinema.org/a/1TwTvEdgZGUbJRZIORIGJr0ey.png)](https://asciinema.org/a/1TwTvEdgZGUbJRZIORIGJr0ey)\n[subd](https://github.com/jodevsa/subd) command\n\n## changelog v1.3.5\n#### re-written  in ES7\n#### fixed various bugs.\n## Installation\n  npm install subscene_scraper --save\n\n## Usage:\n\n\n### example(1)\n##### download a subtitle for a movie in our current working directory\n#### code:\n\n    var subscene_scraper=require('subscene_scraper');\n\n    // for example we will download the subtitle file at current working directory\n    var path=process.cwd();\n\n    //all languages supported by subscene.com are now supported.\n\n    subscene_scraper.passiveDownloader('interstellar','english',path)\n    .then(function(savedFiles){\n        console.log('subtitle saved to ',savedFiles);    \n    })\n    .catch(function(err){\n    console.log('error:',err);\n    });\n\n### example(2)\n##### Interactive downloader\n    //title subtiles have 2 steps (1) chooseTitle (2) chooseRelease\n    // release subtitles have 1 step (1) chooseRelease\n    // you'll have to implement chooseTitleSubtitle,chooseReleaseSubtitle functions.\n    var subscene_scraper=require('subscene_scraper');\n    var interactiveDownloader=subscene_scraper.interactiveDownloader;\n    const downloader = interactiveDownloader(movieName, language, saveLocation);\n    downloader.on('info', async (info, choose) =\u003e {\n      if (info.type === 'title') {\n        // type === 'title'\n        // chooseTitle (1)\n        /// choose subtitle from info.result\n        const result = choose(chooseTitleSubtitle(info.result));\n        choose(result);\n      } else {\n        /// type === 'release'\n        // chooseRelease (1)\n        /// choose subtitle from info.result\n        choose(chooseReleaseSubtitle(info.result));\n      }\n    }).on('title', async (list, choose) =\u003e {\n      // chooseRelease (2)\n      const result = chooseReleaseSubtitle(list);\n      choose(result);\n    }).on('done', (result, movieName) =\u003e {\n      console.log('Downloaded Subtitle at', result)\n    })\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjodevsa%2Fsubscene_scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjodevsa%2Fsubscene_scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjodevsa%2Fsubscene_scraper/lists"}