ICSC.py soup Mail from bytes to text
This commit is contained in:
parent
0f92b9f73e
commit
b3a9ec415d
|
@ -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`)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue