Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Commit f59cd15

Browse files
committed
docs: 📓 udpate readme
1 parent b7dfa95 commit f59cd15

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
## 数据爬取
2828

29-
### 列表数据
29+
### 基金列表数据
3030

3131
> 爬取基金筛选列表,包括基金代码,基金专属代码,基金分类,三年评级,五年评级这些维度等,有了这些基本数据,为了爬取基金详情页,基金筛选等铺好数据基础。
3232

src/utils/index.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,11 @@ def get_star_count_with_np(morning_star_url):
104104
raise BaseException('识别失败')
105105

106106
def get_star_count(morning_star_url, fund_code, img_ele=None):
107-
# path = './assets/star/star'
108107
try:
109-
return get_star_count_with_np(morning_star_url)
110-
except BaseException:
111-
print('图片比较失败')
112108
return get_star_count_with_sewar(fund_code, img_ele)
109+
except BaseException:
110+
print('图片相似度失败')
111+
return get_star_count_with_np(morning_star_url)
113112

114113
def parse_csv(datafile):
115114
data = []

0 commit comments

Comments
 (0)