]> khamidou — GitHub mirrors - Projet_IC05.git/commitdiff
Ajout tweet.py
authorRonan <ronan.kervella@gmail.com>
Tue, 6 Nov 2012 00:02:53 +0000 (01:02 +0100)
committerRonan <ronan.kervella@gmail.com>
Tue, 6 Nov 2012 00:02:53 +0000 (01:02 +0100)
tweet.py [new file with mode: 0644]

diff --git a/tweet.py b/tweet.py
new file mode 100644 (file)
index 0000000..d86358c
--- /dev/null
+++ b/tweet.py
@@ -0,0 +1,16 @@
+# Tweet class: 
+# A Tweet representation from the JSON file got from a search with the Tweeter API 
+
+class Tweet:
+
+    def __init__(self):
+        self.userMentions = list()
+        self.user = ""
+        self.userName = ""
+        self.profileImgUrlHttp = ""
+        self.source = ""
+        self.text = ""
+        self.toUser = ""
+        self.userId = ""
+        self.id = ""
+        self.date = ""