Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
zyronon committed Mar 28, 2024
1 parent 05b5bab commit 6b901f3
Show file tree
Hide file tree
Showing 73 changed files with 14,458 additions and 524 deletions.
1 change: 1 addition & 0 deletions node/comment/data/detail_comments_2024-03-29.json

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions node/comment/process.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import fs from 'fs'

let read = './data/detail_comments_2024-03-29.json'
let save = "./data/";

let video_ids = [
"7260749400622894336",
"7128686458763889956",
"7293100687989148943",
"6923214072347512068",
"7005490661592026405",
"7161000281575148800",
"7267478481213181238",
"6686589698707590411",
"7321200290739326262",
"7194815099381484860",
"6826943630775831812",
"7110263965858549003",
"7295697246132227343",
"7270431418822446370",
"6882368275695586568",
"7000587983069957383",
]
let saveFileStr = fs.readFileSync(read, "utf8");
let data = JSON.parse(saveFileStr)
video_ids.map(v => {
let video_comments = data.filter(a => a.aweme_id == v)
console.log('v', v, 'c', video_comments.length)
fs.writeFileSync(`./video_id_${v}.json`, JSON.stringify(video_comments, null, 2));

})
console.log('data', data.length)
Loading

0 comments on commit 6b901f3

Please sign in to comment.