Hi,
pywikibot developers (and large group bot operators) are also eligible to
vote as that's one of many ways to contribute to the movement. Hence
forwarding here.
Best
---------- Forwarded message ---------
From: Bryan Davis <bd808(a)wikimedia.org>
Date: Tue, Aug 23, 2022 at 5:24 PM
Subject: [Cloud] [Cloud-announce] [Toolforge] Toolforge tool maintainers
are eligible to vote in current Board election
To: <cloud-announce(a)lists.wikimedia.org>
Voting in the 2022 Wikimedia Foundation Board of Trustees election is
now open: <
https://meta.wikimedia.org/wiki/Wikimedia_Foundation_elections/2022/Communi…
>
Per the eligibility rules [0], many technical contributors to the
Wikimedia movement are eligible to vote. In this election round
proactive work has been done by Taavi and others to ensure that
Toolforge maintainers with known SUL accounts are already on the
eligible voter list [1].
[0]:
https://meta.wikimedia.org/wiki/Wikimedia_Foundation_elections/2022/Voter_e…
[1]: https://phabricator.wikimedia.org/T309754
Bryan
--
Bryan Davis Technical Engagement Wikimedia Foundation
Principal Software Engineer Boise, ID USA
[[m:User:BDavis_(WMF)]] irc: bd808
_______________________________________________
Cloud-announce mailing list -- cloud-announce(a)lists.wikimedia.org
List information:
https://lists.wikimedia.org/postorius/lists/cloud-announce.lists.wikimedia.…
_______________________________________________
Cloud mailing list -- cloud(a)lists.wikimedia.org
List information:
https://lists.wikimedia.org/postorius/lists/cloud.lists.wikimedia.org/
--
Amir (he/him)
I'm just starting to use pywikibot. I see that many of the methods of site have an optional "total" argument. In some places, it's documented as:
> if not None, limit the generator to yielding this many items in total
In other methods, it just says:
> number of pages to return
In some methods, such as allpages(), it's not documented at all. Is it safe to assume that anyplace total appears, it has the first meaning, i.e. if I pass in None, there's no limit?

Hi,
currently you can’t see the tags because this property is not retrieved. You have to modify the APISite.usercontribs() method to get it.
https://doc.wikimedia.org/pywikibot/master/_modules/pywikibot/site/_generat…
Please create a Phabricator task for it. I think it is important enough to improve User.contributions() as well as APISite.usercontribs().
By the way, you can use collections.Counter to simplify your code.
https://docs.python.org/3/library/collections.html?highlight=counter#collec…
Best
xqt
> Am 22.05.2022 um 02:48 schrieb i.hate.spam.mail.here(a)gmail.com:
> Hi,
>
> I have this piece of code that counts edits:
> <pre>
> from pywikibot import Site, User
>
> user = User(Site("en"), input('Enter user name: '))
> counts = {}
> for page, oldid, ts, comment in user.contributions(9999999999999):
> page.namespace()
> try:
> counts[str(page.namespace())] += 0
> except KeyError:
> counts.update({str(page.namespace()): 0})
> counts[str(page.namespace())] += 1
> print('Totals:')
> for key in counts:
> a = key.replace(':', '')
> if (a == ""):
> a = 'Main'
> print(a + ":", counts[key])
> </pre>
> My question is how to see the tags in edits. It seems that .contributions() does not return the tags.
> _______________________________________________
> pywikibot mailing list -- pywikibot(a)lists.wikimedia.org
> To unsubscribe send an email to pywikibot-leave(a)lists.wikimedia.org
Hi,
I have this piece of code that counts edits:
<pre>
from pywikibot import Site, User
user = User(Site("en"), input('Enter user name: '))
counts = {}
for page, oldid, ts, comment in user.contributions(9999999999999):
page.namespace()
try:
counts[str(page.namespace())] += 0
except KeyError:
counts.update({str(page.namespace()): 0})
counts[str(page.namespace())] += 1
print('Totals:')
for key in counts:
a = key.replace(':', '')
if (a == ""):
a = 'Main'
print(a + ":", counts[key])
</pre>
My question is how to see the tags in edits. It seems that .contributions() does not return the tags.
Forwarding the message below to this list as some of you might be
interested in the topic - there is a dedicated room to talk about all
things Python (PAWS, Pywikibot, etc.). If you are interested in claiming a
session slot, now is the time!
Cheers,
Srishti
*Srishti Sethi*
Senior Developer Advocate
Wikimedia Foundation <https://wikimediafoundation.org/>
---------- Forwarded message ---------
From: Melinda Seckington <mseckington(a)wikimedia.org>
Date: Thu, May 5, 2022 at 2:21 PM
Subject: [Wikidata] Wikimedia Hackathon May 20-22: Info about the online
space, local meetups and more
To: <wikimedia-l(a)lists.wikimedia.org>, <wikitech-l(a)lists.wikimedia.org>, <
wikidata-l(a)lists.wikimedia.org>, <cloud(a)lists.wikimedia.org>, <
wikitech-ambassadors(a)lists.wikimedia.org>
Hi all,
The Wikimedia Hackathon
<https://www.mediawiki.org/wiki/Wikimedia_Hackathon_2022> is coming up in
two weeks, on May 20-22. The Hackathon is an event by and for technical
contributors from around the world. It’s a space to work together on
technical projects, learn new skills, and meet others in the technical
community. Newcomers are welcome
<https://www.mediawiki.org/wiki/Wikimedia_Hackathon_2022/How_to/Newcomers>!
A few updates:
The main event will happen in an online game-style space
<https://www.mediawiki.org/wiki/Wikimedia_Hackathon_2022/How_to#Joining_the_…>,
supported by local meetups
<https://www.mediawiki.org/wiki/Wikimedia_Hackathon_2022/Meetups> organized
by community members around the world. Instructions on how to enter the
online space will be published shortly before the start of the hackathon.
If you would like to attend a meetup, please visit the local meetups
<https://www.mediawiki.org/wiki/Wikimedia_Hackathon_2022/Meetups> page to
learn if there is one nearby and how to join.
If you already know what you are going to be working on or need help on a
project, please add your project to the hackathon Phabricator board
<https://phabricator.wikimedia.org/project/view/5802/>. If you have tasks
that are good for newcomers and are up to helping others, please also tag
them with #good first tasks
<https://phabricator.wikimedia.org/tag/good_first_task/>.
If you have an idea for a session or social activity, you can pick an open
slot in the category which fits your topic and add the session directly to
the schedule
<https://www.mediawiki.org/wiki/Wikimedia_Hackathon_2022/Schedule>. All
topics are welcome, as long as they are connected to the technical
environment of the Wikimedia projects! We are particularly interested in
sessions that are useful for newcomers.
If you are new to the technical community or this is your first Wikimedia
Hackathon, please check out the list of tips for newcomers
<https://www.mediawiki.org/wiki/Wikimedia_Hackathon_2022/How_to/Newcomers>.
If you have any questions, feel free to ask on the talk page
<https://www.mediawiki.org/wiki/Talk:Wikimedia_Hackathon_2022>. If you want
to brainstorm ideas or find a co-speaker for your session, the hackathon
social channels
<https://www.mediawiki.org/wiki/Wikimedia_Hackathon_2022/Discussions> are a
good place to find others. You can also add your name to the participants
list <https://www.mediawiki.org/wiki/Wikimedia_Hackathon_2022/Participants>
and find out what others are interested in.
Many thanks to the folks who already expressed interest in helping with
facilitation or newcomer support! We plan to publish the shift plan early
next week. Those up for helping are welcome to pick an open slot once it’s
up.
We are looking forward to meeting you all soon!
Melinda, for the hackathon committee
--
Melinda Seckington
Developer Advocacy Manager
Wikimedia Foundation <https://wikimediafoundation.org/>
_______________________________________________
Wikidata mailing list -- wikidata(a)lists.wikimedia.org
To unsubscribe send an email to wikidata-leave(a)lists.wikimedia.org