Reduced dependence on BeautifulSoup
This commit is contained in:
parent
6f37dfa9bc
commit
74af39e455
1 changed files with 0 additions and 6 deletions
|
@ -9,7 +9,6 @@ import urlparse
|
||||||
from urllib import quote, quote_plus as _quote_plus
|
from urllib import quote, quote_plus as _quote_plus
|
||||||
from urllib2 import HTTPError, URLError
|
from urllib2 import HTTPError, URLError
|
||||||
|
|
||||||
from BeautifulSoup import BeautifulSoup
|
|
||||||
|
|
||||||
|
|
||||||
from lxml import etree, html
|
from lxml import etree, html
|
||||||
|
@ -31,11 +30,6 @@ def get(*args, **kwargs):
|
||||||
def get_html(*args, **kwargs):
|
def get_html(*args, **kwargs):
|
||||||
return html.fromstring(get(*args, **kwargs))
|
return html.fromstring(get(*args, **kwargs))
|
||||||
|
|
||||||
|
|
||||||
def get_soup(*args, **kwargs):
|
|
||||||
return BeautifulSoup(get(*args, **kwargs))
|
|
||||||
|
|
||||||
|
|
||||||
def get_xml(*args, **kwargs):
|
def get_xml(*args, **kwargs):
|
||||||
return etree.fromstring(get(*args, **kwargs))
|
return etree.fromstring(get(*args, **kwargs))
|
||||||
|
|
||||||
|
|
Reference in a new issue