blob: 7315782d61377a5b1214042609e1be09931c8564 (
plain)
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
|
BASE_URL = "https://www.wikifolio.com/de/de/wikifolio/"
class Certificate:
def __init__(self, id, shortdesc, isin, trader):
self.id = id
self.name = shortdesc
self.isin = isin
self.trader = trader
def make_url(self):
return BASE_URL + self.name
def __repr__(self):
return "<{} id={} shortdesc=\"{}\" isin={}>".format(
self.__class__.__name__, self.id, self.name, self.isin)
class Comment:
def __init__(self, date, author, text, guid, link):
self.pubDate = date
self.author = author
self.description = text
self.guid = guid
self.link = link
|