Discover and explore top open-source AI tools and projects—updated daily.
spencermountainParse Wikipedia wikitext into structured data
Top 41.6% on SourcePulse
This library parses complex Wikipedia wikitext into structured data, offering developers a robust solution for extracting information from MediaWiki sites. It benefits users by simplifying access to Wikipedia's vast knowledge base, overcoming the inherent difficulties of wikitext parsing.
How It Works
The core approach directly parses wikitext, meticulously handling its intricate syntax, recursive templates, redirects, and obscure shorthands. It prioritizes generating machine-readable formats like plaintext and JSON, rather than relying on intermediate HTML. This method is advantageous for its comprehensive support of wikitext's quirks, aiming for accuracy where simpler parsers might fail.
Quick Start & Requirements
npm install wtf_wikipedianpm install -g dumpster-dive.Highlighted Details
{{CURRENTMONTH}}, {{CONVERT}}) and converts DMS geo-coordinates to lat/lon.wtf-plugin-api, wtf-plugin-classify).Maintenance & Community
The project lists "many contributors" and is licensed under MIT, suggesting an open-source community model. Specific community links or roadmap details were not present in the provided README.
Licensing & Compatibility
Limitations & Caveats
Wikitext's inherent complexity presents challenges, including partial inline-CSS support, scope issues, and deep recursion. The library does not support external 'transcluded' page data, AST output, smart HTML formatting, per-sentence references, or template/infobox CSS styling. It is not the fastest parser available and may require specific API configurations for third-party wikis.
2 days ago
Inactive
finic-ai
jzbjyb
adbar
codelucas