While first comparing piwikipedia and wikitools, I have been astonished to see how much light and simple are scripts to run a bot and "do basic things", ti: reading and writing pages, access to API, and so on.
I'll try - consider that I'm far from skilled or "professional" - to prune off from pywikipedia any script but the basic ones, covered by wikitools, just to have some personal fun; but I encourage developers to do something similar, writing a real "pywikipedia core" containing nothing but really needed modules to run basics with personal scripts.
I presume that the result will exclude 95% or more of present pwykipedia content.
Alex brollo
Hi Alex,
I'm not sure what you are proposing - what do you want to prune off, exactly, and how is python-wikitools [1] related to this?
We already have 'a real "pywikipedia core" containing nothing but really needed modules to run basics with personal scripts.' - it's called pywikibot-core ;-). We do package scripts in the scripts/ subdirectory, but they are completely seperate from the base framework.
Alternatively, if you want a smaller framework, there are some alternatives: python-wikitools is one of them, but there's also mwclient [2] and, for instance, Yuvi's python-mwapi, which is really close to the API level.
Best, Merlijn
[1] https://code.google.com/p/python-wikitools/ [2] https://github.com/mwclient/mwclient [3] https://github.com/yuvipanda/python-mwapi
On 20 August 2013 10:58, Alex Brollo alex.brollo@gmail.com wrote:
While first comparing piwikipedia and wikitools, I have been astonished to see how much light and simple are scripts to run a bot and "do basic things", ti: reading and writing pages, access to API, and so on.
I'll try - consider that I'm far from skilled or "professional" - to prune off from pywikipedia any script but the basic ones, covered by wikitools, just to have some personal fun; but I encourage developers to do something similar, writing a real "pywikipedia core" containing nothing but really needed modules to run basics with personal scripts.
I presume that the result will exclude 95% or more of present pwykipedia content.
Alex brollo
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Thanks for comment and suggestions.
Alex
2013/8/20 Merlijn van Deen valhallasw@arctus.nl
Hi Alex,
I'm not sure what you are proposing - what do you want to prune off, exactly, and how is python-wikitools [1] related to this?
We already have 'a real "pywikipedia core" containing nothing but really needed modules to run basics with personal scripts.' - it's called pywikibot-core ;-). We do package scripts in the scripts/ subdirectory, but they are completely seperate from the base framework.
Alternatively, if you want a smaller framework, there are some alternatives: python-wikitools is one of them, but there's also mwclient [2] and, for instance, Yuvi's python-mwapi, which is really close to the API level.
Best, Merlijn
[1] https://code.google.com/p/python-wikitools/ [2] https://github.com/mwclient/mwclient [3] https://github.com/yuvipanda/python-mwapi
On 20 August 2013 10:58, Alex Brollo alex.brollo@gmail.com wrote:
While first comparing piwikipedia and wikitools, I have been astonished to see how much light and simple are scripts to run a bot and "do basic things", ti: reading and writing pages, access to API, and so on.
I'll try - consider that I'm far from skilled or "professional" - to prune off from pywikipedia any script but the basic ones, covered by wikitools, just to have some personal fun; but I encourage developers to do something similar, writing a real "pywikipedia core" containing nothing but really needed modules to run basics with personal scripts.
I presume that the result will exclude 95% or more of present pwykipedia content.
Alex brollo
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
pywikipedia-l@lists.wikimedia.org