-
Notifications
You must be signed in to change notification settings - Fork 0
/
opportunity.py
45 lines (35 loc) · 1.08 KB
/
opportunity.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
class Opportunity:
"""
The opportunity class holds the information scraped from the GradAustralia website
"""
def __init__(self, company, o_type, info, info_link, location=None, app = None):
self.company = company
self.o_type = o_type
self.location = location
self.application_link = app
self.info = info
self.info_link = info_link
# Non importants
self.review_score = None
self.link = None
self.openD = None
self.closeD = None
self.start = None
self.min = None
self.max = None
self.vacancies = None
def review(self, score, link):
self.review_score = score
self.link = link
def openDate(self, openD):
self.openD = openD
def closeDate(self, closeD):
self.closeD = closeD
def startdate(self, start):
self.start = start
def mnsalary(self, smin):
self.min = smin
def mxsalary(self, smax):
self.max = smax
def addvacancies(self, spots):
self.vacancies = spots