Adapt BeautifulSoup import for WAPT 1.8
This commit is contained in:
parent
93c5c610cc
commit
ab0eff0898
6
setup.py
6
setup.py
|
@ -45,8 +45,12 @@ def sendmessagebox(msg,title,boxtype=4096):
|
|||
|
||||
def update_package():
|
||||
|
||||
import requests,BeautifulSoup,re
|
||||
import requests,re
|
||||
from waptpackage import PackageEntry
|
||||
try:
|
||||
import bs4 as BeautifulSoup
|
||||
except:
|
||||
import BeautifulSoup
|
||||
|
||||
page = requests.get('https://www.java.com/en/download/manual.jsp',headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'}).text
|
||||
bs = BeautifulSoup.BeautifulSoup(page)
|
||||
|
|
Loading…
Reference in New Issue