1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 13:02:38 +00:00

Change package reference to avoid clashes

This commit is contained in:
Myned 2019-09-24 19:12:31 -04:00
parent 3741b0e694
commit 1262dc2ba7
No known key found for this signature in database
GPG key ID: BC58C09870A63E59

View file

@ -3,7 +3,7 @@ import ast
import re
from bs4 import BeautifulSoup
from lxml import html
import lxml
from hurry.filesize import size, alternative
from misc import exceptions as exc
@ -108,7 +108,7 @@ async def get_post(url):
async def get_image(url):
content = await u.fetch(url)
value = html.fromstring(content).xpath(
value = lxml.html.fromstring(content).xpath(
'string(/html/body/div[@id="content"]/div[@id="post-view"]/div[@class="content"]/div[2]/img/@src)')
return value