generated from Nemesis/Exemple
erreur parenthèse
This commit is contained in:
parent
f3d90af4ca
commit
aebe530c38
1 changed files with 1 additions and 1 deletions
|
@ -2029,7 +2029,7 @@ def titre(room, event): # cherche le titre d'une page
|
||||||
args.pop(0)
|
args.pop(0)
|
||||||
try:
|
try:
|
||||||
url=args[0]
|
url=args[0]
|
||||||
if not (re.search(r"^.*://",url):
|
if not (re.search(r"^.*://",url)):
|
||||||
url = "http://" + url
|
url = "http://" + url
|
||||||
r = requests.get(url)
|
r = requests.get(url)
|
||||||
res = re.search(r"<title>(.*)</title>",r.text)
|
res = re.search(r"<title>(.*)</title>",r.text)
|
||||||
|
|
Loading…
Reference in a new issue