creativecommons / creativecommons/quantifying

Add WikiCommons Data Source

Abierto
#180 3 comentarios 0 reacciones 0 asignados Ver en GitHub
✨ goal: improvement 🏁 status: ready for work 💻 aspect: code help wanted 🟩 priority: low
Lenguaje dominante
Python
Estrellas
48
Forks
74
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

## Problem
Hello, right now, the project collects data from Google Custom Search and GitHub, and work on adding Wikipedia is already in progress via PRs #176 and #167. Also, @TimidRobot commented about “more meaningful data” (for Wikipedia) suggesting they expect more than just basic counts — but WikiCommons they hasn’t been addressed yet.

However, WikiCommons is also an important source for Creative Commons–licensed media, and it’s not yet part of the automated system.
There’s an older version of it under `pre-automation/wikicommons/`, but it hasn’t been updated to the new structure.

## Description
Work can be done on adding WikiCommons as a new data source using the MediaWiki API.
This would collect counts of CC-licensed media files (like images, videos, and audio) by license type.

The plan is to:
- Review the old `pre-automation/wikicommons_scratcher.py` script.
- Rewrite it to match the new 3-step workflow (1-fetch, 2-process, 3-report).
- Make sure the new script uses the current shared helpers and output format.

This will help the project measure CC-licensed media content more accurately.

## Alternatives
It could be combined with the Wikipedia data, but keeping it separate makes it easier to track media content specifically.

## Additional context
- **Old script**: `pre-automation/wikicommons/`
- **API**:
- [MediaWiki Action API](https://commons.wikimedia.org/w/api.php)
- [API:Categorymembers - MediaWiki](https://www.mediawiki.org/wiki/API:Categorymembers/en)
- Builds on similar work done for **Wikipedia** (#159, #167, #176)

## Implementation
- [x] I would be interested in implementing this feature.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Empieza leyendo pre-automation/wikicommons_scratcher.py y los archivos relacionados de pre-automation/wikicommons/, y después compara el trabajo de Wikipedia en las issues #159, #167 y #176. Adapta la fuente al flujo de trabajo 1-fetch, 2-process, 3-report usando los helpers compartidos actuales y el formato de salida actual; se considera terminado cuando los medios con licencia CC se recopilan por tipo de licencia mediante la MediaWiki API.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
data
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
50/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.