0.0.96
This commit is contained in:
parent
6d559e0bb2
commit
25808a7631
@ -1,7 +1,7 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
# replace with your username:
|
# replace with your username:
|
||||||
name = guan
|
name = guan
|
||||||
version = 0.0.95
|
version = 0.0.96
|
||||||
author = guanjihuan
|
author = guanjihuan
|
||||||
author_email = guanjihuan@163.com
|
author_email = guanjihuan@163.com
|
||||||
description = An open source python package
|
description = An open source python package
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as file reading/writing, figure plotting, data processing.
|
# With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as file reading/writing, figure plotting, data processing.
|
||||||
|
|
||||||
# The current version is guan-0.0.95, updated on June 29, 2022.
|
# The current version is guan-0.0.96, updated on June 29, 2022.
|
||||||
|
|
||||||
# Installation: pip install --upgrade guan
|
# Installation: pip install --upgrade guan
|
||||||
|
|
||||||
@ -2279,7 +2279,8 @@ def download_with_scihub(address=None, num=1):
|
|||||||
print('\nResponse:', r)
|
print('\nResponse:', r)
|
||||||
print('Address:', r.url)
|
print('Address:', r.url)
|
||||||
soup = BeautifulSoup(r.text, features='lxml')
|
soup = BeautifulSoup(r.text, features='lxml')
|
||||||
pdf_URL = soup.iframe['src']
|
pdf_URL = soup.embed['src']
|
||||||
|
# pdf_URL = soup.iframe['src'] # This is a code line of history version which fails to get pdf URL.
|
||||||
if re.search(re.compile('^https:'), pdf_URL):
|
if re.search(re.compile('^https:'), pdf_URL):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user