33 lines
698 B
Python
33 lines
698 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 = []
|
|
soup = BeautifulSoup(html, 'lxml')
|
|
event = soup
|
|
print(soup).text
|
|
|
|
#Am Ende soll alles auf der Variable events liegen
|
|
print(events)
|
|
|
|
#Hier endet die Schleife und jeder einzelne event wir der Liste event hinzugefügt
|
|
events.append(event)
|
|
|
|
return events
|