-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdata.py
55 lines (41 loc) · 1.14 KB
/
data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
class Page:
def __init__(self, title, memes, next_page_url):
self.title = title
self.memes = memes
self.next_page_url = next_page_url
class TextContent:
def __init__(self, text):
self.contentType = "TEXT"
self.text = text
class VideoContent:
def __init__(self, url):
self.contentType = "VIDEO"
self.url = url
class GalleryContent:
def __init__(self, images):
self.contentType = "GALLERY"
self.urls = images
class ImageContent:
def __init__(self, src):
self.contentType = "IMAGE"
self.url = src
class Tag:
def __init__(self, name, url):
self.name = name
self.url = url
class Meme:
def __init__(
self, title, url, view_url, content, author, tags, points, comment_count
):
self.title = title
self.url = url
self.view_url = view_url
self.content = content
self.tags = tags
self.points = points
self.comment_count = comment_count
self.author = author
class Author:
def __init__(self, name, url):
self.name = name
self.url = url