Skip to content

Commit 783e47a

Browse files
committed
Fix href error
1 parent e07e705 commit 783e47a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crawler/core/utils/base_tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ def get_all_attribute_words(tbody, results=[]):
4444
img_tag = td.find("img")
4545

4646
if img_tag and img_tag.has_attr("src"):
47-
value = img_tag["src"]
47+
value += f'_{img_tag["src"]}'
4848
else:
4949
a_tag = td.find("a")
5050
if a_tag and a_tag.has_attr("href"):
51-
value = a_tag["href"]
51+
value += f'_{a_tag["href"]}'
5252

5353
_results.append(f"\t{label}:\t{value}")
5454
row.decompose()

0 commit comments

Comments
 (0)