mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 20:41:21 -05:00
Fix missing import
This commit is contained in:
parent
eb6f3cf3de
commit
940ffa9d10
@ -38,6 +38,7 @@ import supybot.log as log
|
||||
import requests
|
||||
import json
|
||||
from bs4 import BeautifulSoup
|
||||
import random
|
||||
|
||||
try:
|
||||
from supybot.i18n import PluginInternationalization
|
||||
|
@ -38,6 +38,7 @@ from bs4 import BeautifulSoup
|
||||
import requests
|
||||
import re
|
||||
import pylyrics3
|
||||
import random
|
||||
|
||||
try:
|
||||
from supybot.i18n import PluginInternationalization
|
||||
@ -62,6 +63,7 @@ class Lyrics(callbacks.Plugin):
|
||||
header = {'User-Agent': ua}
|
||||
data = requests.get(searchurl, headers=header, timeout=10)
|
||||
data.raise_for_status()
|
||||
log.debug(data.content.decode())
|
||||
soup = BeautifulSoup(data.content)
|
||||
elements = soup.select('.r a')
|
||||
title = soup.find("h3").getText().replace(":", " - ").split('|')[0]
|
||||
|
@ -43,7 +43,7 @@ import sys, math
|
||||
import re
|
||||
import pexpect
|
||||
import time
|
||||
import random as random
|
||||
import random
|
||||
import pyimgur
|
||||
from bs4 import BeautifulSoup
|
||||
import json
|
||||
@ -1377,4 +1377,4 @@ class TextArt(callbacks.Plugin):
|
||||
irc.reply("\x031,8888\x031,8989\x031,9090\x031,9191\x031,9292\x031,9393\x031,9494\x031,9595\x031,9696\x031,9797\x031,9898\x031,9999", prefixNick=False)
|
||||
codes = wrap(codes)
|
||||
|
||||
Class = TextArt
|
||||
Class = TextArt
|
||||
|
Loading…
x
Reference in New Issue
Block a user