initial commit for the-great-escape yuku scraper

This commit is contained in:
Adrian Malacoda
2016-11-26 23:09:12 -06:00
parent e5fb7e5c9a
commit 933e178ce5
8 changed files with 219 additions and 0 deletions

33
tge/model.py Normal file
View 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 = []