I'm looking for pointers working with the #Wikipedia / #WikiMedia #Commons #API:
I've been playing around with the #APISandbox, but I've been unable as of yet to find the fileinfo that's listed under Colors in the Summary block just above https://commons.wikimedia.org/wiki/File:Flag_of_France.svg#Licensing

I can of course extract it by scraping using #BeautifulSoup, or by downloading the #SVG and examining that, but I'd rather get the data through the official #WikipediaAPI.

#WikiMediaCommons #MediaWiki #Python #WP #WPAPI

File:Flag of France.svg - Wikimedia Commons

TL;DR:
Given https://commons.wikimedia.org/wiki/File:Flag_of_France.svg or "Flag of France", how do I get:
- bleu rendered as RGB 0, 35, 14
- blanc rendered as RGB 255, 255, 255
- rouge rendered as RGB 237, 41, 57
*using only the API*

#coding #development #dataMassaging #webdev

File:Flag of France.svg - Wikimedia Commons