36 lines
731 B
Python
36 lines
731 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
from bs4 import BeautifulSoup
|
|
|
|
'''
|
|
|
|
A parser to get events from ICSC out of their e-mails
|
|
|
|
'''
|
|
|
|
|
|
|
|
'''
|
|
A parser to get events of ICSC out of their e-mails
|
|
'''
|
|
class ICSC:
|
|
|
|
'''
|
|
@param input must be string with html
|
|
@return all events as list
|
|
'''
|
|
@staticmethod
|
|
def getEvents(html):
|
|
events = []
|
|
event = html
|
|
#hier mit beautifulsoup events rausholen und in liste packen
|
|
# events = BeautifulSoup.text
|
|
#in einer Schleife durch BS
|
|
#ermittel jedes event
|
|
print(events)
|
|
|
|
#Hier endet die Schleife und jeder einzelne event wir der Liste event hinzugefügt
|
|
events.append(event)
|
|
|
|
return events
|