본문으로 건너뛰기
Skillpedia
웹 스크레이핑6.3k · #14303

facebook-groups-scrape-posts

하는 일

이 스킬은 로그인했을 때 볼 수 있는 Facebook 그룹의 게시물을 읽고 각 게시물의 세부 정보를 돌려줍니다. 그룹 토론을 살펴보려는 연구자, 커뮤니티 관리자, 마케터를 위한 스킬입니다.

사용하는 경우

  • ✓내가 속한 Facebook 그룹의 최신 게시물을 보고 싶을 때.
  • ✓커뮤니티에서 반응이 가장 많은 게시물을 분석해야 할 때.
  • ✓분석을 위해 그룹 게시물을 정해진 개수만큼 모으고 싶을 때.

스킬 링크

https://github.com/browser-act/skills/blob/main/solutions/social-listening/facebook-groups-scrape-posts/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/browser-act/skills/blob/main/solutions/social-listening/facebook-groups-scrape-posts/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“facebook.com/groups/example-group 그룹의 최신 게시물 50개를 반응 수와 댓글 수와 함께 모아 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 로그인된 브라우저에서 그룹 페이지를 열고, 내가 고른 순서대로 설정한 개수만큼 게시물을 읽습니다. 각 게시물의 ID, 링크, 작성자, 시간, 본문, 미디어, 반응 수, 댓글 수와 공유 수를 돌려줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Facebook Groups — Scrape Posts

Input: Facebook group URL + sort order + desired count → Output: post list with full metadata (JSON).

Language

All process output to user (progress updates, process notifications) follows the user's language.

Objective

Given a Facebook group URL, scrape N posts sorted by the specified order and return structured metadata for each post.

Prerequisites

  • Target group page is already open in the browser: https://www.facebook.com/groups/{group_slug_or_id}
  • Already logged into Facebook (user avatar, Messenger icon, and notification bell visible in the top-right corner)

Pre-execution Checks

1. Tool Readiness

If browser-act has been confirmed available in the current session → skip this step.

Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.

2. Login Verification

If Facebook login status has been confirmed in the current session → skip this step.

Otherwise, navigate to https://www.facebook.com/ and verify login status programmatically:

browser-act navigate 'https://www.facebook.com/'
browser-act wait stable --timeout 15000
browser-act eval "JSON.stringify({user_id: document.cookie.match(/c_user=(\d+)/)?.[1] || '0', USER_ID: (()=>{try{return require('CurrentUserInitialData').USER_ID;}catch(e){return '0';}})()})"

Verdict:

  • user_id is a non-empty numeric string (e.g., "61560817072276"), or USER_ID !== "0" → logged in, continue
  • user_id === null or USER_ID === "0" → not logged in; assist user: run browser-act browser open {browser_id} https://www.facebook.com/login --headed to open a headed window so the user can sign in manually (Stealth normal mode persists cookies — one login is reusable)

Facebook may clear c_user mid-session: if GraphQL errors such as field_exception or missing_required_variable_value occur during execution, re-run this login check before assuming the script is broken.

User refuses or cannot log in → terminate execution. Facebook enforces strict restrictions on unauthenticated group access (login modal blocks pagination, feed returns partial data + field_exception); login is a hard prerequisite.

Capability Components

This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the authenticated user, never bypassing authentication or access controls — equivalent to copy-pasting on the user's behalf. JS code is encapsulated in Python files under the scripts/ directory, invoked via eval "$(python scripts/xxx.py {params})". $(...) is bash syntax; use the bash tool for execution.

API: Scrape group posts (with auto-pagination)

Navigate to the target group page first, then invoke the scrape script (it auto-resolves the numeric group ID from the current page):

browser-act navigate 'https://www.facebook.com/groups/{group_slug_or_id}'
browser-act wait stable --timeout 20000
browser-act eval "$(python scripts/scrape-posts.py --sort CHRONOLOGICAL --count 20)"

Parameters:

  • --sort: Sort order, default CHRONOLOGICAL. See "Enum Parameters" below
  • --count: Desired number of posts, default 20. Script auto-paginates until count is met or feed is exhausted
  • --max-pages: Pagination safety cap, default 100
  • --doc-id: GraphQL persisted query doc_id for GroupsCometFeedRegularStoriesPaginationQuery, default 26577462205242925. Update via this flag if Facebook rotates the version (see "Known Limitations")

Output example:

{
  "ok": true,
  "group_id": "2580640642080467",
  "group_name": "Programmer Humor",
  "sort": "CHRONOLOGICAL",
  "total": 20,
  "posts": [
    {
      "post_id": "4052937798184070",
      "cache_id": "6790541484885792441",
      "id": "UzpfSTEwMDA4ODY4MzIx...",
      "permalink_url": "https://www.facebook.com/groups/programmerhumor/posts/4052937798184070/",
      "creation_time": 1772941518,
      "message": "Those were the days my friend ...",
      "author": {
        "id": "100088683215191",
        "name": "Jeff Bramlett",
        "profile_picture": null,
        "url": "https://www.facebook.com/JeffieB56"
      },
      "group": {
        "id": "2580640642080467",
        "name": "Programmer Humor",
        "url": "https://www.facebook.com/groups/programmerhumor/"
      },
      "reactions": {
        "total": 1,
        "total_formatted": "1",
        "breakdown": [
          { "name":
자주 묻는 질문

Facebook에 로그인되어 있어야 하나요?

네, 스킬은 Facebook 로그인 세션을 확인하며, 그룹을 읽으려면 로그인이 필요합니다.

게시물을 몇 개까지 모을 수 있나요?

모을 게시물 수는 직접 정합니다.

각 게시물 기록에는 무엇이 들어 있나요?

게시물 링크, 작성자, 작성 시간, 본문, 이미지나 영상, 반응 수, 댓글 수와 공유 수가 들어 있습니다.

상세 정보

작성자의 원본 설명

Scrapes posts from a Facebook group given a group URL, sort order, and desired count — returns structured post metadata including post_id, permalink, author, timestamp, body text, images/videos, reaction counts, reaction type breakdown, comment count, and share count. Use when: user wants to scrape/extract Facebook group posts, collect FB group content, harvest group data, get posts from a Facebook group, monitor Facebook group activity, bulk export group posts, facebook groups scraping, facebook-groups-scrape-posts, fetch FB group feed.

repo: browser-act/skills

인기도

GitHub 스타
6.3k
순위
#14303
라이선스
MIT
업데이트
2026. 8. 24.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬