mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-28 22:41:08 -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 requests
|
||||||
import json
|
import json
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
import random
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from supybot.i18n import PluginInternationalization
|
from supybot.i18n import PluginInternationalization
|
||||||
|
@ -38,6 +38,7 @@ from bs4 import BeautifulSoup
|
|||||||
import requests
|
import requests
|
||||||
import re
|
import re
|
||||||
import pylyrics3
|
import pylyrics3
|
||||||
|
import random
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from supybot.i18n import PluginInternationalization
|
from supybot.i18n import PluginInternationalization
|
||||||
@ -62,6 +63,7 @@ class Lyrics(callbacks.Plugin):
|
|||||||
header = {'User-Agent': ua}
|
header = {'User-Agent': ua}
|
||||||
data = requests.get(searchurl, headers=header, timeout=10)
|
data = requests.get(searchurl, headers=header, timeout=10)
|
||||||
data.raise_for_status()
|
data.raise_for_status()
|
||||||
|
log.debug(data.content.decode())
|
||||||
soup = BeautifulSoup(data.content)
|
soup = BeautifulSoup(data.content)
|
||||||
elements = soup.select('.r a')
|
elements = soup.select('.r a')
|
||||||
title = soup.find("h3").getText().replace(":", " - ").split('|')[0]
|
title = soup.find("h3").getText().replace(":", " - ").split('|')[0]
|
||||||
|
@ -43,7 +43,7 @@ import sys, math
|
|||||||
import re
|
import re
|
||||||
import pexpect
|
import pexpect
|
||||||
import time
|
import time
|
||||||
import random as random
|
import random
|
||||||
import pyimgur
|
import pyimgur
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
import json
|
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)
|
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)
|
codes = wrap(codes)
|
||||||
|
|
||||||
Class = TextArt
|
Class = TextArt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user