{"id":17342835,"url":"https://github.com/hay/wikilope","last_synced_at":"2025-07-31T06:35:34.648Z","repository":{"id":66463370,"uuid":"149146639","full_name":"hay/wikilope","owner":"hay","description":"Discover interesting connections starting from a Wikipedia article","archived":false,"fork":false,"pushed_at":"2018-09-17T21:57:22.000Z","size":27,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T02:05:47.973Z","etag":null,"topics":["graph-theory","network-analysis","nodejs","wikipedia","wikipedia-api"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/hay.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":"2018-09-17T15:27:09.000Z","updated_at":"2024-11-15T18:59:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"c1477866-e100-46d1-8921-eef8dbf11fde","html_url":"https://github.com/hay/wikilope","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"e9d5acffc97b109d78182b46a9b66d5da5844d96"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hay/wikilope","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hay%2Fwikilope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hay%2Fwikilope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hay%2Fwikilope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hay%2Fwikilope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hay","download_url":"https://codeload.github.com/hay/wikilope/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hay%2Fwikilope/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267998970,"owners_count":24178674,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["graph-theory","network-analysis","nodejs","wikipedia","wikipedia-api"],"created_at":"2024-10-15T16:07:13.433Z","updated_at":"2025-07-31T06:35:34.612Z","avatar_url":"https://github.com/hay.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wikilope\n\u003e Discover interesting connections starting from a Wikipedia article.\n\nThis is a Node.js library and command-line tool to see connections from Wikipedia articles. For example, you can use it to see the [Getting to Philosophy](https://en.wikipedia.org/wiki/Wikipedia:Getting_to_Philosophy) effect, but it can do much more.\n\n## Install\n```\n$ npm install -g wikilope\n```\n\n## Basic usage\n\nOn the command line\n\n```bash\nwikilope -l \u003clanguage code\u003e -a \u003carticle name\u003e\n```\n\nOr using a script\n\n```javascript\nconst Wikilope = require('../index.js');\n\nconst lope = new Wikilope({\n    article : '\u003carticle name\u003e',\n    language : '\u003clanguage\u003e'\n});\n\nlope.run();\n```\n\n## Advanced usage\n### Command line\nThe `wikilope` command has a lot of options you can use for interesting queries:\n\n```bash\nUsage: wikilope [options] \u003ccmd\u003e [env]\n\nOptions:\n\n  -a, --article \u003carticle\u003e    Wikipedia article name\n  -c, --count \u003ccount\u003e        Number of links to fetch\n  -f, --format \u003cformat\u003e      Output format: 'tree' (default) or 'terms'\n  --json                     Output in JSON format\n  -l, --language \u003clanguage\u003e  Language code for Wikipedia edition (e.g. 'en', 'nl', 'fr')\n  --no-redirects             Don't follow redirects\n  --no-cache                 Don't cache entries\n  -r, --recursive            Also crawl up from results\n  -s, --steps \u003csteps\u003e        How many steps should we go up?\n  -v, --verbose\n  -h, --help                 output usage information\n```\n\nHere's the classical [Getting to Philosopy](https://en.wikipedia.org/wiki/Wikipedia:Getting_to_Philosophy) effect, starting from the English language Wikipedia version of the 'Amsterdam' article.\n\n    wikilope -l en -a Amsterdam\n\nLet's not just get the first link, but the first three links. And let's use the German Wikipedia.\n\n    wikilope -l de -a Amsterdam -c 3\n\nTo also get the links from the articles you find use the recursive (`-r`) option.\n\n    wikilope -l en -a Elephant -r\n\nGet the same data, but in JSON format\n\n    wikilope -l en -a Elephant -r --json\n\nTo limit the number of articles we're getting we could use the step (`-s`) option. We're also getting the first three links and doing it recursive.\n\n    wikilope -l en -a Blockchain -rs 5 -c 3\n\n### Node.js\nUse this module for Node.js like this:\n\n```javascript\nconst Wikilope = require('../index.js');\n\nconst lope = new Wikilope({\n    article : 'Amsterdam',\n    language : 'en'\n});\n\nlope.run();\n```\n\nAll options of the command line version have equivalent arguments in the `Wikilope` constructor:\n\n```javascript\n{\n // Class option      : Command line flag\n    article           : article,\n    count             : count,\n    debug             : verbose,\n    followRedirects   : redirects,\n    format            : format,\n    json              : json,\n    language          : language,\n    recursive         : recursive,\n    steps             : steps,\n    useCache          : cache\n}\n```\n\n## License\nMIT \u0026copy; [Hay Kranen](http://www.haykranen.nl)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhay%2Fwikilope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhay%2Fwikilope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhay%2Fwikilope/lists"}