feat: 新增豆瓣新片榜 & add ESLint

This commit is contained in:
imsyy
2023-09-06 14:48:27 +08:00
parent 813e88c993
commit 6330914d09
21 changed files with 1788 additions and 343 deletions

View File

@@ -22,8 +22,7 @@ const url =
"https://www.douyin.com/aweme/v1/web/hot/search/list/?device_platform=webapp&aid=6383&channel=channel_pc_web&detail_list=1&round_trip_time=50";
// Token 获取路径
const cookisUrl =
"https://www.douyin.com/passport/general/login_guiding_strategy/?aid=6383";
const cookisUrl = "https://www.douyin.com/passport/general/login_guiding_strategy/?aid=6383";
// 数据处理
const getData = (data) => {
@@ -37,9 +36,7 @@ const getData = (data) => {
pic: `${v.word_cover.url_list[0]}`,
hot: Number(v.hot_value),
url: `https://www.douyin.com/hot/${encodeURIComponent(v.sentence_id)}`,
mobileUrl: `https://www.douyin.com/hot/${encodeURIComponent(
v.sentence_id
)}`,
mobileUrl: `https://www.douyin.com/hot/${encodeURIComponent(v.sentence_id)}`,
});
});
return dataList;