Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/residentmario/blogimporter

A script that handles tedius setup tasks for the Blog section of the Wikipedia Signpost.
https://github.com/residentmario/blogimporter

Last synced: about 1 month ago
JSON representation

A script that handles tedius setup tasks for the Blog section of the Wikipedia Signpost.

Awesome Lists containing this project

README

        

# blogimporter
A script that handles tedius setup tasks for the Blog section of the Wikipedia Signpost.

About

The "Blog" is a report published as a part of the weekly "Wikipedia Signpost", a community-organized and -written internal newspaper on the English Wikipedia that covers the Wikipedia movement at large. This report republishes content from posts to the Wikimedia Blog, another popular, albiet less neautral, movement platform.

Credit is due to the Wikimedia Foundation for the flexible HTML-to-Wikicode conversion facilities baked into their API.

Installation

This script requires:
* [Python 3.4.0](https://docs.python.org/3.4/)
* [Pywikibot](https://www.mediawiki.org/wiki/Manual:Pywikibot)

Inputs

This script requires a "-p" or "--page" parameter that is within the domain of the Wikimedia Blog. Otherwise it doesn't know where to look! At a minimum you want to run something that looks like this:

run Blog_Importer.py -p 'https://blog.wikimedia.org/2015/07/16/third-transparency-report-released'

The script will automatically find and target the next to-be-published Signpost issue, but it also provides a capacity to specify your target manually. Valid inputs are in the domain of the Signpost or my on-wiki userspace (a subpage of "User:Resident Mario").

run Blog_Importer.py -p 'https://blog.wikimedia.org/2015/07/16/third-transparency-report-released' -t 'Wikipedia:Wikipedia Signpost/Newsroom/Special desk/Draft of stuff'

Or, for testing:

run Blog_Importer.py -p 'https://blog.wikimedia.org/2015/07/16/third-transparency-report-released' -t 'User:Resident Mario/sandbox'

History

| Date | Comment |
| ------------- | ------------- |
| 7/16/2015 | First version posted here. |