Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

샤오홍슈 크롤러

키워드 기반 샤오홍슈 게시물 수집기 (Playwright + TypeScript + Google Sheets)

설치

npm install
npx playwright install chromium

최초 로그인 (처음 1회만)

npm start -- --login

브라우저 창이 열리면 샤오홍슈에 직접 로그인 → 터미널에서 Enter

실행

npm start

설정 변경

config.ts에서:

  • keywords: 수집할 키워드 배열
  • maxPostsPerKeyword: 키워드당 최대 수집 수
  • fetchDetail: 상세 페이지 수집 여부
  • spreadsheetId: Google Sheets ID

수집 데이터

필드 설명
id 게시물 ID
title 제목
caption 본문
likes 좋아요 수
comments 댓글 수
authorName 작성자 이름
authorId 작성자 ID
authorFollowers 팔로워 수
thumbnailUrl 썸네일 URL
postUrl 게시물 URL
tags 태그 목록
crawledAt 수집 일시

Google Sheets 연동

인스타 크롤러에서 쓰던 credentials.json을 이 프로젝트 루트에 복사하면 됩니다.

About

xiaohongshu-crawler

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages