ICSC.py soup Mail from bytes to text

This commit is contained in:
Al-P 2019-07-31 18:49:37 +02:00
parent 0f92b9f73e
commit b3a9ec415d
2 changed files with 6 additions and 4 deletions

View File

@ -123,7 +123,9 @@ CREATE TABLE `News_KategoCREATE TABLE `News_Kategorie-Organisation` (
PRIMARY KEY (`NKOID`)
FOREIGN KEY (NKID) REFERENCES News_Kategorie(NKID)
FOREIGN KEY (OID) REFERENCES Organisation(OID)
);NCREMENT,
)
PRIMARY KEY (`NKOID`)CREATE TABLE `News_Kategorie-Organisation` (
`NKOID` INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`NKOID`)

View File

@ -22,13 +22,13 @@ class ICSC:
@staticmethod
def getEvents(html):
events = []
event = html
soup = BeautifulSoup(html, 'lxml')
event = soup
#hier mit beautifulsoup events rausholen und in liste packen
# events = BeautifulSoup.text
#in einer Schleife durch BS
#ermittel jedes event
print(events)
print(soup)
#Hier endet die Schleife und jeder einzelne event wir der Liste event hinzugefügt
events.append(event)