py2ls 0.1.7.2__py3-none-any.whl → 0.1.7.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
py2ls/netfinder.py
CHANGED
@@ -115,7 +115,7 @@ def extract_text_from_content(content, content_type="text/html", where=None, wha
|
|
115
115
|
if extend:
|
116
116
|
texts = ""
|
117
117
|
for tag in result_set:
|
118
|
-
texts =texts+" "+ extract_text(tag) + "\n"
|
118
|
+
texts =texts+" "+ extract_text(tag) + " \n"
|
119
119
|
text_list = [tx.strip() for tx in texts.split("\n") if tx.strip()]
|
120
120
|
return text_list
|
121
121
|
else:
|
@@ -660,7 +660,7 @@ def find_img(url, driver='request',dir_save="images", rm_folder=False, verbose=T
|
|
660
660
|
print(f"Failed to process image {image_url}: {e}")
|
661
661
|
print(f"images were saved at\n{dir_save}")
|
662
662
|
if verbose:
|
663
|
-
display_thumbnail_figure(flist(dir_save,
|
663
|
+
display_thumbnail_figure(flist(dir_save,kind='img'),dpi=100)
|
664
664
|
return content
|
665
665
|
|
666
666
|
def svg_to_png(svg_file):
|
@@ -1064,14 +1064,16 @@ def find_all(url, dir_save=None, driver='req'):
|
|
1064
1064
|
|
1065
1065
|
def flist(fpath, kind="all"):
|
1066
1066
|
all_files = [os.path.join(fpath, f) for f in os.listdir(fpath) if os.path.isfile(os.path.join(fpath, f))]
|
1067
|
-
if
|
1067
|
+
if kind == "all" or 'all' in kind:
|
1068
1068
|
return all_files
|
1069
1069
|
if isinstance(kind, str):
|
1070
1070
|
kind=[kind]
|
1071
1071
|
filt_files=[]
|
1072
|
-
for
|
1073
|
-
|
1074
|
-
|
1072
|
+
for f in all_files:
|
1073
|
+
for kind_ in kind:
|
1074
|
+
if isa(f, kind_):
|
1075
|
+
filt_files.extend(flist(fpath, kind=kind_))
|
1076
|
+
break
|
1075
1077
|
return filt_files
|
1076
1078
|
|
1077
1079
|
def isa(fpath, kind='img'):
|
@@ -135,13 +135,13 @@ py2ls/doc.py,sha256=xN3g1OWfoaGUhikbJ0NqbN5eKy1VZVvWwRlhHMgyVEc,4243
|
|
135
135
|
py2ls/export_requirements.py,sha256=x2WgUF0jYKz9GfA1MVKN-MdsM-oQ8yUeC6Ua8oCymio,2325
|
136
136
|
py2ls/freqanalysis.py,sha256=F4218VSPbgL5tnngh6xNCYuNnfR-F_QjECUUxrPYZss,32594
|
137
137
|
py2ls/ips.py,sha256=KkrkGAF0VQ-N0rH4FQFLyP-C-skY6EPpeO8t_5RngWw,88519
|
138
|
-
py2ls/netfinder.py,sha256=
|
138
|
+
py2ls/netfinder.py,sha256=rOuZob1DftsdcS3whOUZEgNSeqScjw71siBIs5QaWB4,47165
|
139
139
|
py2ls/plot.py,sha256=8_33-1wpkGZrDUuvRBfTPUi_BRKdf1njoR725OLSLSY,48579
|
140
140
|
py2ls/setuptools-70.1.0-py3-none-any.whl,sha256=2bi3cUVal8ip86s0SOvgspteEF8SKLukECi-EWmFomc,882588
|
141
141
|
py2ls/sleep_events_detectors.py,sha256=36MCuRrpurn0Uvzpo3p3b3_JlVsRNHSWCXbJxCGM3mg,51546
|
142
142
|
py2ls/stats.py,sha256=Wd9yCKQ_61QD29WMEgMuEcreFxF91NmlPW65iWT2B5w,39041
|
143
143
|
py2ls/translator.py,sha256=bc5FB-wqC4TtQz9gyCP1mE38HqNRJ_pmuRIgKnAlMzM,30581
|
144
144
|
py2ls/wb_detector.py,sha256=7y6TmBUj9exCZeIgBAJ_9hwuhkDh1x_-yg4dvNY1_GQ,6284
|
145
|
-
py2ls-0.1.7.
|
146
|
-
py2ls-0.1.7.
|
147
|
-
py2ls-0.1.7.
|
145
|
+
py2ls-0.1.7.4.dist-info/METADATA,sha256=pvLE_J8tjljeYYbdsKpOxqfdN-EpG_5BSrU5Nyv_r-g,20017
|
146
|
+
py2ls-0.1.7.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
147
|
+
py2ls-0.1.7.4.dist-info/RECORD,,
|
File without changes
|