FIX: Citabot
This commit is contained in:
parent
cac893784d
commit
9880c2c544
|
@ -3,7 +3,7 @@ from bs4 import BeautifulSoup
|
||||||
from common import get_api
|
from common import get_api
|
||||||
|
|
||||||
# Get the quote of the day
|
# Get the quote of the day
|
||||||
r = requests.get('https://proverbia.net/frase-del-dia')
|
r = requests.get('https://proverbia.net/frase-del-dia', verify=False)
|
||||||
content = BeautifulSoup(r.text, "html.parser").find_all('blockquote')
|
content = BeautifulSoup(r.text, "html.parser").find_all('blockquote')
|
||||||
message = content[0].p.get_text() + "\n\n"
|
message = content[0].p.get_text() + "\n\n"
|
||||||
message += "—" + content[0].a.get_text() + " " + content[0].em.get_text()
|
message += "—" + content[0].a.get_text() + " " + content[0].em.get_text()
|
||||||
|
|
|
@ -40,7 +40,11 @@ excluded_domains = [
|
||||||
'federa.social',
|
'federa.social',
|
||||||
# Non-spanish accounts >:(
|
# Non-spanish accounts >:(
|
||||||
'sportsbots.xyz',
|
'sportsbots.xyz',
|
||||||
'press.coop'
|
'press.coop',
|
||||||
|
'fedibird.com',
|
||||||
|
# Mirrors
|
||||||
|
'respublicae.eu',
|
||||||
|
'bots.fedi.cr '
|
||||||
]
|
]
|
||||||
|
|
||||||
bot_name = 'federabot'
|
bot_name = 'federabot'
|
||||||
|
|
Loading…
Reference in New Issue