Compare commits
No commits in common. "996375c9dde24f2863b27799cd72ed6ecdc8dc58" and "8800c3815ab330359ab9f0272afa9f3817c7fc57" have entirely different histories.
996375c9dd
...
8800c3815a
1 changed files with 6 additions and 3 deletions
9
key.py
9
key.py
|
@ -21,7 +21,8 @@ class App:
|
||||||
await self.send_message("hi there, i'm marvin")
|
await self.send_message("hi there, i'm marvin")
|
||||||
|
|
||||||
async def send_message(self, message: str):
|
async def send_message(self, message: str):
|
||||||
await self.client.room_send(
|
print(message)
|
||||||
|
resp = await self.client.room_send(
|
||||||
room_id=self.room_id,
|
room_id=self.room_id,
|
||||||
message_type="m.room.message",
|
message_type="m.room.message",
|
||||||
content={
|
content={
|
||||||
|
@ -29,6 +30,7 @@ class App:
|
||||||
"body": message,
|
"body": message,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
print(resp)
|
||||||
|
|
||||||
async def run(self):
|
async def run(self):
|
||||||
await self.setup()
|
await self.setup()
|
||||||
|
@ -39,12 +41,13 @@ class App:
|
||||||
async def update(self):
|
async def update(self):
|
||||||
text = ""
|
text = ""
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
async with session.get(
|
url = (
|
||||||
"https://fundsuche02.kivbf.de//MyApp.asp"
|
"https://fundsuche02.kivbf.de//MyApp.asp"
|
||||||
"?wci=FundHeader&Mdt=Bamberg&format=&PLZ=96047"
|
"?wci=FundHeader&Mdt=Bamberg&format=&PLZ=96047"
|
||||||
"&KM=50&KATEGORIE=%7B705DA1A1-2E03-4B2A-A31D-4E78E713CD79%7D"
|
"&KM=50&KATEGORIE=%7B705DA1A1-2E03-4B2A-A31D-4E78E713CD79%7D"
|
||||||
"&DATUM=01.09.2020&BESCHREIBUNG=&FILTER=A&MerkmaleData="
|
"&DATUM=01.09.2020&BESCHREIBUNG=&FILTER=A&MerkmaleData="
|
||||||
) as resp:
|
)
|
||||||
|
async with session.get(url) as resp:
|
||||||
text = await resp.text()
|
text = await resp.text()
|
||||||
soup = bs4.BeautifulSoup(text, "html.parser")
|
soup = bs4.BeautifulSoup(text, "html.parser")
|
||||||
elements = soup.find_all(
|
elements = soup.find_all(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue