12 lines
282 B
Python
12 lines
282 B
Python
__version__ = "1.0.0"
|
|
|
|
# --- package ---
|
|
# --- crawling ---
|
|
from bs4 import BeautifulSoup
|
|
from urllib import request
|
|
|
|
def get_lxml(target_url):
|
|
request_url = request.urlopen(target_url)
|
|
bs = BeautifulSoup(request_url, "lxml", from_encoding='utf-8')
|
|
|
|
return bs |