Having problems with pageimport.py on a third-party wiki (WikiQueer). Anyone else having issues with that script?
I'm calling it from a script I'm playing around with - but no luck. It doesn't error out - but it doesn't import and confirms that the import failed.
Here's the "test" script I'm working from:
import wikipedia as pywikibot
from pageimport import *
def main():
wanted_category_title = "Apple"
enwiki_site = pywikibot.getSite()
importerbot = Importer(enwiki_site) # Inizializing
importerbot.Import(wanted_category_title,project='wikipedia', prompt = True)
try:
main()
finally:
pywikibot.stopme()
On a related note, the ultimate goal is to import pages for "Wanted Categories" from English Wikipedia into the third-party wiki. Any ideas, tips or existing code to that end would also be appreciated.
Thanks!
-greg aka varnent
-------
Gregory Varnum
Lead, Aequalitas Project
Lead Administrator, WikiQueer
Founding Principal, VarnEnt
@GregVarnum
fb.com/GregVarnum
Hi folks,
is there a piece of code in pywiki that determines easily if the current
time zone is summer or winter time? (Last Sunday of March, 3 o'clock --
last Sunday of October, 2 o'clock)
--
Bináris
I tried script by reza1615
http://www.wikidata.org/wiki/User:Reza1615/BOT/new_interwiki.py
It works, but only for some pages; many of them script skip,
displaying only ---------------------- (which is in line 362)
i run new_interwiki.py -start:foo
or
new_interwiki.py -page:foo
unfortunatelly I am not able to change this code for work with all pages
Can anybody help?
JAnD
Hi PyWikipedians,
Is there a simple way to get a list of pages created on a particular date?
I was hoping to find something in pagegenerators, but maybe not?
Thanks for any pointers!
John
couple years ago somebody did stay for a couple years ;) (altho that was
the chapters conference and there was a vulcano involved)
henna
On Fri, Mar 8, 2013 at 7:19 PM, Petr Bena <benapetr(a)gmail.com> wrote:
> I have one question :) why the registration form is asking me which
> year and month I will depart? Are you afraid some attendees are
> planning to stay for several years? :D
>
> On Fri, Mar 8, 2013 at 6:54 PM, Maarten Dammers <maarten(a)mdammers.nl>
> wrote:
> > Hi everyone,
> >
> > Wikimedia Nederland invites all developers to the Wikimedia Hackathon.
> The
> > Wikimedia Hackathon will be in 2013 from 24-26 May. The registration is
> now
> > open and also includes the possibility to apply for a travel,
> accommodation
> > or full scholarship. You can find the form at
> >
> https://docs.google.com/spreadsheet/viewform?formkey=dFg2SmRRbkpxNmxCcFNFdl…
> >
> > The hackathon is an opportunity for all Wikimedia community developers
> and
> > sysadmins to come together, squash bugs and write great new features &
> > tools. Unlike the previous years (2012, 2011, etc.) this Hackathon won't
> be
> > in Berlin, but in Amsterdam.
> >
> > The event is open to a wide range of developers. We welcome both seasoned
> > and new developers as well as people working on MediaWiki, tools,
> > pywikipedia, Wikidata, gadgets, extensions, templates … . Please suggest
> and
> > discus topics at
> > https://www.mediawiki.org/wiki/Amsterdam_Hackathon_2013/Topics .
> >
> > You can indicate that you're coming at
> > https://www.mediawiki.org/wiki/Amsterdam_Hackathon_2013/Attendees and/or
> > https://www.facebook.com/events/167285526755104/ . This doesn't replace
> > registration, it's just to let others know what you're up to.
> >
> > Keep an eye on https://www.mediawiki.org/wiki/Amsterdam_Hackathon_2013for
> > updates!
> >
> > Maarten
> >
> >
> > _______________________________________________
> > Labs-l mailing list
> > Labs-l(a)lists.wikimedia.org
> > https://lists.wikimedia.org/mailman/listinfo/labs-l
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l(a)lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
--
"Maybe you knew early on that your track went from point A to B, but unlike
you I wasn't given a map at birth!" Alyssa, "Chasing Amy"
Hey,
delete.py uses this summary for deleting a list of pages from file
(-file:file.txt option):
'delete-from-file': u'Robot: Deleting a list of files.',
It's really wrong and all of translation is based on this and all of them
must change
Best
--
Amir
Dear all,
Hello, I am Gabriel Chi Hong Lee from Hong Kong, I would like to ask that
where is the correct place to learn how to make an pywikipedia-bot? I have
a own wiki that I can try it on there. Please give me some advise. Thank
you!
Gabriel Lee
2013/3/13 <pywikipedia-l-request(a)lists.wikimedia.org>
> Send Pywikipedia-l mailing list submissions to
> pywikipedia-l(a)lists.wikimedia.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
> or, via email, send a message with subject or body 'help' to
> pywikipedia-l-request(a)lists.wikimedia.org
>
> You can reach the person managing the list at
> pywikipedia-l-owner(a)lists.wikimedia.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Pywikipedia-l digest..."
>
>
> Today's Topics:
>
> 1. Table of contents for scripts and fixes (Bináris)
> 2. Renaming of some German-specific fixes (Bináris)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 13 Mar 2013 11:38:05 +0100
> From: Bináris <wikiposta(a)gmail.com>
> To: Pywikipedia discussion list <pywikipedia-l(a)lists.wikimedia.org>
> Subject: [Pywikipedia-l] Table of contents for scripts and fixes
> Message-ID:
> <
> CAD0L+c8WZhWt7qmKKWR-61knaoYQz6CSTV86ri82jvvtT2kikw(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi gurus,
>
> I have suffered for a long time because I have quite a lot of fixes and I
> can hardly find my way in this jungle and keep a logical order and find old
> ones.
> So I decided to write a script that creates a table of contents int
> fixes.py/user-fixes.py.
>
> Then I thought it should also list main-level variables and functions
> (Python is very good at dissolving main-level things from others :-)). As I
> already wrote earlier, I use several own functions for my fixes ([1]). And
> also header lines of some predefined format. All this script needs a place
> to insert the TOC which should be a predefined constant line, e.g.
> # *** CONTENTS *** #
> (If the script finds the corresponding END CONTENTS line, it clears the
> previous TOC from between these two.)
>
> But then I realized that enhanced with classes this would be useful for any
> kind of scripts without extra work. For example in wikipedia.py which is
> now long, long, and hard to overview.
> Of course, there would be a possibility to leave some kind of data (e.g.
> "no variables please, only functiions and classes"), and two approaches for
> ordering (everything in original order, or fisrt the variables, then
> functions, then fixes...).
> Unfortunately, in some rare cases the length of a line may excced the 80
> characters, which may cause PEP8 and/or Xqt beiing sad. :-)
>
> How does this concept sound?
>
> I will anyhow write it for my own purposes. It is just about community use
> for complicated scripts such as fixes.py or wikipedia.py.
>
> [1]
>
> http://hu.wikipedia.org/wiki/Szerkeszt%C5%91:Bin%C3%A1ris/Fixes_and_functio…
> --
> Bináris
>
Hi,
I recommend to rename two fixes in fixes.py.
datum --> datum-de
music --> music-de
These are both German-specific while their names might be used for other
languages, too, and this is annoying.
I will do that if there are no strong objections. (Bot owners who use them
and don't read the list will then get an error message with the available
fixes and will easily find the new names.)
Moreover, it's a good philosophical question, how much to include
language-specific fixes in the common file. I have several dozens of
Hungarian fixes and never committed them. :-)
--
Bináris