{"id":15695980,"url":"https://github.com/edsu/wplinks","last_synced_at":"2025-05-08T22:15:56.889Z","repository":{"id":13594796,"uuid":"16287641","full_name":"edsu/wplinks","owner":"edsu","description":"utility to get a list of Wikipedia articles that point at a particular website","archived":false,"fork":false,"pushed_at":"2014-01-30T21:34:25.000Z","size":180,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T22:15:28.197Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/edsu.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":"2014-01-27T18:09:54.000Z","updated_at":"2017-08-22T19:02:14.000Z","dependencies_parsed_at":"2022-09-10T19:23:49.969Z","dependency_job_id":null,"html_url":"https://github.com/edsu/wplinks","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/edsu%2Fwplinks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Fwplinks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Fwplinks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Fwplinks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edsu","download_url":"https://codeload.github.com/edsu/wplinks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253154983,"owners_count":21862624,"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-10-03T19:06:04.913Z","updated_at":"2025-05-08T22:15:56.853Z","avatar_url":"https://github.com/edsu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"wplinks\n=======\n\n[![Build Status](https://secure.travis-ci.org/edsu/wplinks.png)](http://travis-ci.org/edsu/wplinks)\n\nwplinks provides a generator function called `extlinks` that lets you iterate\nthrough links from Wikipedia articles to a particular website, or portion \nof a website. It also provides `links` which lets you iterate through other\nWikipedia URLs that are linked from a given Wikipedia URL.\n\nSo for example, to see what Wikipedia articles point at interviews on the\nThe Paris Review website:\n\n```python\n\nfrom wplinks import extlinks \n\nfor src, target in extlinks('http://www.theparisreview.org/interviews'):\n    print src, target\n```\n\nBy default you get links for English Wikipedia, but if you'd like results for \nthe French Wikipedia instead use the `lang` parameter:\n\n```python\nfrom wplinks import extlinks\n\nfor src, target in extlinks('http://www.theparisreview.org/interviews', lang='fr'):\n    print src, target\n```\n\nIf you'd like to see what other Wikipedia articles a given Wikipedia article\nlinks to use the `links` function. For example lets say you want to see what\narticles the James Joyce article points to:\n\n```\n\nfrom wplinks import links\n\nfor url in links('http://en.wikipedia.org/wiki/James_Joyce'):\n    print url\n```\n\nWhy?\n----\n\nwplinks used to be somewhat involved since it scraped the \n[External links search][1] page. It became quite a bit simpler once I \ndiscovered the `exturlusage` [API][2] call. You might want to make this \nAPI call yourself and page through the results, without including wplinks\nas a dependency.  But I left it here just in case you'd rather not.\n\n\nLicense\n-------\n\n* CC0\n\n[1]: https://en.wikipedia.org/wiki/Special:LinkSearch\n[2]: https://en.wikipedia.org/w/api.php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsu%2Fwplinks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedsu%2Fwplinks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsu%2Fwplinks/lists"}