3 ms·
>beautifulsoup Really? Seriously? No better way to query the source of a page and render it on the terminal?
by snvzz 4y ago
>beautifulsoup
Really? Seriously? No better way to query the source of a page and render it on the terminal?
- rjh29 4y agoParsing wikitext is insanely hard. Using HTML is a good compromise. See also: * https://github.com/spencermountain/wtf_wikipedia#ok-first- https://github.com/spencermountain/wtf_wikipedia#ok-first- * https://osr.cs.fau.de/wp-content/uploads/2017/09/wikitext-parser.pdf https://osr.cs.fau.de/wp-content/uploads/2017/09/wikitext-pa... * https://utcc.utoronto.ca/~cks/space/blog/programming/ParsingWikitext https://utcc.utoronto.ca/~cks/space/blog/programming/Parsing...
- snvzz 4y agoWow. Much worse than I thought. If only if mediawiki (php) never happened. Wikipedia was sane at one point.