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`)
|
PRIMARY KEY (`NKOID`)
|
||||||
FOREIGN KEY (NKID) REFERENCES News_Kategorie(NKID)
|
FOREIGN KEY (NKID) REFERENCES News_Kategorie(NKID)
|
||||||
FOREIGN KEY (OID) REFERENCES Organisation(OID)
|
FOREIGN KEY (OID) REFERENCES Organisation(OID)
|
||||||
);NCREMENT,
|
|
||||||
|
|
||||||
|
)
|
||||||
PRIMARY KEY (`NKOID`)CREATE TABLE `News_Kategorie-Organisation` (
|
PRIMARY KEY (`NKOID`)CREATE TABLE `News_Kategorie-Organisation` (
|
||||||
`NKOID` INT NOT NULL AUTO_INCREMENT,
|
`NKOID` INT NOT NULL AUTO_INCREMENT,
|
||||||
PRIMARY KEY (`NKOID`)
|
PRIMARY KEY (`NKOID`)
|
||||||
|
|
|
@ -22,13 +22,13 @@ class ICSC:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getEvents(html):
|
def getEvents(html):
|
||||||
events = []
|
events = []
|
||||||
event = html
|
soup = BeautifulSoup(html, 'lxml')
|
||||||
|
event = soup
|
||||||
#hier mit beautifulsoup events rausholen und in liste packen
|
#hier mit beautifulsoup events rausholen und in liste packen
|
||||||
# events = BeautifulSoup.text
|
|
||||||
#in einer Schleife durch BS
|
#in einer Schleife durch BS
|
||||||
#ermittel jedes event
|
#ermittel jedes event
|
||||||
print(events)
|
print(events)
|
||||||
|
print(soup)
|
||||||
#Hier endet die Schleife und jeder einzelne event wir der Liste event hinzugefügt
|
#Hier endet die Schleife und jeder einzelne event wir der Liste event hinzugefügt
|
||||||
events.append(event)
|
events.append(event)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue