mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-24 04:43:36 +00:00
bluetooth_company_id: use live data
This commit is contained in:
parent
ff7cea0b7e
commit
44dacee23f
@ -80,12 +80,12 @@ def scrape_page(fout, url):
|
||||
fout.write(page_info.format(page=url))
|
||||
|
||||
# get from web
|
||||
# r = requests.get(url, headers=headers)
|
||||
# content = r.text
|
||||
r = requests.get(url, headers=headers)
|
||||
content = r.text
|
||||
|
||||
# test: fetch from local file 'service-discovery.html'
|
||||
f = codecs.open("company-identifiers.html", "r", "utf-8")
|
||||
content = f.read();
|
||||
# f = codecs.open("company-identifiers.html", "r", "utf-8")
|
||||
# content = f.read();
|
||||
|
||||
tree = html.fromstring(content)
|
||||
rows = tree.xpath('//table/tbody/tr')
|
||||
|
Loading…
x
Reference in New Issue
Block a user