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 manual pages. If the "sitewide" flag is false (0), it's a partial block 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 <roy@panix.com> wrote:
On Dec 4, 2019, at 8:07 PM, Roy Smith <roy@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 labs-l@lists.wikimedia.org)
https://lists.wikimedia.org/mailman/listinfo/cloud