mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14: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
|
import re
|
||||||
|
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
from lxml import html
|
import lxml
|
||||||
from hurry.filesize import size, alternative
|
from hurry.filesize import size, alternative
|
||||||
|
|
||||||
from misc import exceptions as exc
|
from misc import exceptions as exc
|
||||||
|
@ -108,7 +108,7 @@ async def get_post(url):
|
||||||
async def get_image(url):
|
async def get_image(url):
|
||||||
content = await u.fetch(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)')
|
'string(/html/body/div[@id="content"]/div[@id="post-view"]/div[@class="content"]/div[2]/img/@src)')
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|
Loading…
Reference in a new issue