Yeah, phpserialize will handle these parameters. Keep in mind that this field is stored as a byte string in the database, so you might have to convert it to a string (using encode()) for phpserialize to parse it.
You can find information about some of the parameters in the Help:Blocking users <https://www.mediawiki.org/wiki/Help:Blocking_users> manual pages. If the "sitewide" flag is false (0), it's a partial block <https://meta.wikimedia.org/wiki/Community_health_initiative/Partial_blocks> and will have additional parameters for the pages and/or namespaces that are blocked. IIRC partial blocks aren't enabled on English Wikipedia yet, so it would only apply if you're working with wikis where it is. Cheers, Morten On Wed, 4 Dec 2019 at 17:09, Roy Smith <r...@panix.com> wrote: > On Dec 4, 2019, at 8:07 PM, Roy Smith <r...@panix.com> wrote: > > I also need to figure out how to parse this in Python. > > > Oh, looks like https://pypi.org/project/phpserialize/ can handle that > part. > _______________________________________________ > Wikimedia Cloud Services mailing list > Cloud@lists.wikimedia.org (formerly lab...@lists.wikimedia.org) > https://lists.wikimedia.org/mailman/listinfo/cloud
_______________________________________________ Wikimedia Cloud Services mailing list Cloud@lists.wikimedia.org (formerly lab...@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/cloud