Skip to content
Snippets Groups Projects
Commit 5baf03bb authored by overflow's avatar overflow
Browse files

find room function now sends the date to the room instead of returning it

parent 446c7828
No related branches found
No related tags found
No related merge requests found
...@@ -8,11 +8,11 @@ from bs4 import BeautifulSoup ...@@ -8,11 +8,11 @@ from bs4 import BeautifulSoup
import requests import requests
def find_room(sender, message): def find_room(sender, message, room):
html = requests.get("https://foss-ag.de/").text html = requests.get("https://foss-ag.de/").text
soup = BeautifulSoup(html, 'html.parser') soup = BeautifulSoup(html, 'html.parser')
date = soup.find(id="ag-termine").find_next_sibling("div").find("ul").find("li").get_text().strip() date = soup.find(id="ag-termine").find_next_sibling("div").find("ul").find("li").get_text().strip()
return date room.sendText(date)
def main(): def main():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment