mirror of
https://github.com/myned/modufur.git
synced 2024-12-23 22:27:27 +00:00
Change package reference to avoid clashes
This commit is contained in:
parent
3741b0e694
commit
1262dc2ba7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue