initial commit for the-great-escape yuku scraper
This commit is contained in:
33
tge/model.py
Normal file
33
tge/model.py
Normal file
@@ -0,0 +1,33 @@
|
||||
class Forum (object):
|
||||
def __init__ (self, title=None):
|
||||
self.title = title
|
||||
self.users = []
|
||||
self.categories = []
|
||||
|
||||
class Post (object):
|
||||
def __init__ (self, title=None, body=None, author=None):
|
||||
self.title = title
|
||||
self.body = body
|
||||
self.author = author
|
||||
|
||||
class Thread (object):
|
||||
def __init__ (self, title=None):
|
||||
self.title = title
|
||||
self.children = []
|
||||
|
||||
class User (object):
|
||||
def __init__ (self, name=None, signature=None):
|
||||
self.name = name
|
||||
self.signature = signature
|
||||
|
||||
class Category (object):
|
||||
def __init__ (self, title=None, description=None):
|
||||
self.title = title
|
||||
self.description = description
|
||||
self.children = []
|
||||
|
||||
class Board (object):
|
||||
def __init__ (self, title=None, description=None):
|
||||
self.title = title
|
||||
self.description = description
|
||||
self.children = []
|
Reference in New Issue
Block a user