Skip to content

Instantly share code, notes, and snippets.

View J3K's full-sized avatar
🎯
Focusing

Jamal Eddine Kaouiri J3K

🎯
Focusing
View GitHub Profile
@J3K
J3K / phpserialize.py
Created May 2, 2018 10:23 — forked from sj26/phpserialize.py
Python port of PHP serialize() and unserialize()
#!/usr/bin/python -u
"""
Python port of PHP serialize() and unserialize()
by Samuel Cochran <sj26@sj26.com>
I couldn't find a nice, fairly efficient implementation of serialize/unserialize for Python... so I wrote one. I didn't use str().partition because I wanted Python <2.5 compatibility.
TODO: Performance review. There's an awful lot of string copying. >.>
package jk.test.Eurosport_News_Xml_Parse;
/**
* Created by Jamal Eddine Ka on 21/07/2014.
*/
public class XML_IDENTIFIER {
String Category; // Football
String SubCategory; // Transfert
String Title; // Le mercato EN DIRECT : Valbuena au Dynamo Moscou, son agent dément