{"id":23725993,"url":"https://github.com/voidful/wikiextractor","last_synced_at":"2026-03-11T17:31:13.240Z","repository":{"id":45187567,"uuid":"279566128","full_name":"voidful/WikiExtractor","owner":"voidful","description":"Extract Knowledge from wiki dump file","archived":false,"fork":false,"pushed_at":"2022-04-20T10:10:25.000Z","size":31,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T00:25:17.621Z","etag":null,"topics":["extract","knowledge","wiki"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voidful.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}},"created_at":"2020-07-14T11:27:14.000Z","updated_at":"2024-05-10T08:12:14.000Z","dependencies_parsed_at":"2022-09-02T08:31:37.495Z","dependency_job_id":null,"html_url":"https://github.com/voidful/WikiExtractor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/voidful/WikiExtractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voidful%2FWikiExtractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voidful%2FWikiExtractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voidful%2FWikiExtractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voidful%2FWikiExtractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voidful","download_url":"https://codeload.github.com/voidful/WikiExtractor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voidful%2FWikiExtractor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273541903,"owners_count":25124056,"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-09-04T02:00:08.968Z","response_time":61,"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":["extract","knowledge","wiki"],"created_at":"2024-12-31T00:18:07.740Z","updated_at":"2026-03-11T17:31:13.211Z","avatar_url":"https://github.com/voidful.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📂 WikiExtractor 💡\n\nDumping hole wiki content,which can :\n\n- clean unused symbol,mark,label\n- extract knowledge - synonym,concept,relationship\n\n這是一個 wiki 的預處理工具，可以:\n\n- 清理 wiki 中沒有用的内容：標簽，符號...\n- 提取出一些有用的知識：同義詞，關係，翻譯\n\n## Usage\n\nHow to use:\n\n```\npip install wikiext\nwikiext -h\nusage: wikiext [-h] [--lang LANG]\n               [--dump {entity, redirect_pair,langlink,category,articles,all} [{redirect_pair,langlink,category,articles,all} ...]]\n               [--savedir SAVEDIR] [--type {csv,dict}] [--s2t]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --lang LANG           default:zhwiki, from\n                        https://dumps.wikimedia.org/backup-index-bydb.html\n  --dump {entity, redirect_pair,langlink,category,articles,all} [{redirect_pair,langlink,category,articles,all} ...]\n                        select what to extract\n  --savedir SAVEDIR     save dir, default /dump_result\n  --type {csv,dict}\n  --s2t                 simplify chinese to traditional chinese\n\n```\n\n# Function\n\n### init\n\n```\nfrom wiki import WikiExt\nwiki = WikiExt(language_source=\"zh_yuewiki\", s2t=False)\n```\n\nArguments\n\n- `language_source(String)` : example:\"zhwiki\",all of the code can find it on https://dumps.wikimedia.org/backup-index-bydb.html\n- `s2t(Boolean)` : translate all text to traditional or not\n\n### dump_articles(outfile, type=\"csv\")\n\nArguments\n\n- `outfile(String)` : name of output file\n- `type(String)` : csv or text\n  Result\n\n```\ncsv :\n數學,\"歐幾裏得，西元前三世紀的古希臘數學家，現在被認為是幾何之父，此畫為拉斐爾的作品《雅典學院》。\n數學是利用符號語言研究數量、結構、變化以及空間等概念的一門學科，從某種角度看屬於形式科學的一種。數學透過抽象化和邏輯推理的使用，由計數、計算、量度和對物體形狀及運動的觀察而產生。數學家們拓展這些概念，為了公式化新的猜想以及從選定的公理及定義中建立起嚴謹推導出的定理。\n......\ntext :\n數學\n歐幾裏得，西元前三世紀的古希臘數學家，現在被認為是幾何之父，此畫為拉斐爾的作品《雅典學院》。\n數學是利用符號語言研究數量、結構、變化以及空間等概念的一門學科，從某種角度看屬於形式科學的一種。數學透過抽象化和邏輯推理的使用，由計數、計算、量度和對物體形狀及運動的觀察而產生。數學家們拓展這些概念，為了公式化新的猜想以及從選定的公理及定義中建立起嚴謹推導出的定理。\n\n```\n\n### dump_redirect_pair(outfile, type)\n\nget all redirect pair\nArguments\n\n- `outfile(String)` : name of output file\n- `type(String)` : csv or dict\n  Result\n\n```\ncsv:\norigin.redirect to\n鋼の錬金術師,鋼之鍊金術師\n香港仔海旁道,香港仔海傍道\n飛機外部燈光,航行燈\n螢幕八爪娛,熒幕八爪娛\n司农卿,大司農\n大司农卿,大司農\n司農,大司農\n司农,大司農\nEarth 2160,地球2160\n图勒凯尔姆,图勒凯尔姆省\n盖勒吉利耶,盖勒吉利耶省\n......\ndict\n鋼の錬金術師\n鋼之鍊金術師\n香港仔海旁道\n香港仔海傍道\n飛機外部燈光\n航行燈\n螢幕八爪娛\n熒幕八爪娛\n司农卿\n大司農\n大司农卿\n大司農\n司農\n大司農\n司农\n大司農\nEarth 2160\n地球2160\n图勒凯尔姆\n图勒凯尔姆省\n盖勒吉利耶\n盖勒吉利耶省\n```\n\n### dump_entity(outfile, type):\n\nArguments\n\n- `outfile(String)` : name of output file\n- `type(String)` : csv or dict\n\n\n### dump_langlink(outfile, type):\n\nArguments\n\n- `outfile(String)` : name of output file\n- `type(String)` : csv or dict\n\n### dump_category(outfile, type=\"csv\"):\n\nuse this to extract specific categories noun\nArguments\n\n- `outfile(String)` : name of output file\n- `type(String)` : csv or dict\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoidful%2Fwikiextractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoidful%2Fwikiextractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoidful%2Fwikiextractor/lists"}