Facebookグループ爬虫

初級

これはAI分野の自動化ワークフローで、3個のノードを含みます。主にAirtop, FormTriggerなどのノードを使用、AI技術を活用したスマート自動化を実現。 Airtopを使ってFacebookグループの投稿を抽出

前提条件
  • AIサービスAPIキー(OpenAI、Anthropicなど)

使用ノード (3)

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "1LBhz8JFWZgT5cui",
  "meta": {
    "instanceId": "28a947b92b197fc2524eaba16e57560338657b2b0b5796300b2f1cedc1d0d355",
    "templateCredsSetupCompleted": true
  },
  "name": "Facebook Group Scraper",
  "tags": [],
  "nodes": [
    {
      "id": "22789f80-781f-42c4-89c4-ebbf32745a05",
      "name": "フォーム送信時",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ],
      "webhookId": "bf8d7e5f-f886-4586-affa-03c839ce3d70",
      "parameters": {
        "options": {},
        "formTitle": "Facebook Group Scraper",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Facebook Group URL",
              "placeholder": "The URL of the Facebook Group feed you want to scrape",
              "requiredField": true
            },
            {
              "fieldLabel": "Airtop Profile",
              "placeholder": "Airtop Profile authenticated to Facebook",
              "requiredField": true
            }
          ]
        },
        "formDescription": "This automation will extract information from a Facebook group"
      },
      "typeVersion": 2.2
    },
    {
      "id": "31c32d54-5fe3-4125-9e29-029a1c955822",
      "name": "Airtop",
      "type": "n8n-nodes-base.airtop",
      "position": [
        220,
        0
      ],
      "parameters": {
        "url": "={{ $json['Facebook Group URL'] }}",
        "prompt": "This is a Facebook group feed. \nExtract up to 5 non-sponsored posts, for each post extract:\n - Post text\n- Post URL\n- Page/profile URL\n- Timestamp\t\n- Number of likes \n- Number if shares\n- Number of comments\n- Page or profile details\t\n- Post thumbnail",
        "resource": "extraction",
        "profileName": "={{ $json['Airtop Profile'] }}",
        "sessionMode": "new",
        "additionalFields": {
          "outputSchema": "{\n  \"type\": \"object\",\n  \"properties\": {\n    \"posts\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"post_text\": {\n            \"type\": \"string\",\n            \"description\": \"The text content of the post.\"\n          },\n          \"post_url\": {\n            \"type\": \"string\",\n            \"description\": \"The URL of the post.\"\n          },\n          \"page_profile_url\": {\n            \"type\": \"string\",\n            \"description\": \"The URL of the page or profile that made the post.\"\n          },\n          \"timestamp\": {\n            \"type\": \"string\",\n            \"description\": \"The timestamp of when the post was made.\"\n          },\n          \"number_of_likes\": {\n            \"type\": \"integer\",\n            \"description\": \"The number of likes the post has received.\"\n          },\n          \"number_of_shares\": {\n            \"type\": \"integer\",\n            \"description\": \"The number of times the post has been shared.\"\n          },\n          \"number_of_comments\": {\n            \"type\": \"integer\",\n            \"description\": \"The number of comments on the post.\"\n          },\n          \"page_profile_details\": {\n            \"type\": \"string\",\n            \"description\": \"Details about the page or profile that made the post.\"\n          },\n          \"post_thumbnail\": {\n            \"type\": \"string\",\n            \"description\": \"The URL of the post's thumbnail image.\"\n          }\n        },\n        \"required\": [\n          \"post_text\",\n          \"post_url\",\n          \"page_profile_url\",\n          \"timestamp\",\n          \"number_of_likes\",\n          \"number_of_shares\",\n          \"number_of_comments\",\n          \"page_profile_details\",\n          \"post_thumbnail\"\n        ],\n        \"additionalProperties\": false\n      }\n    }\n  },\n  \"required\": [\n    \"posts\"\n  ],\n  \"additionalProperties\": false,\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\"\n}",
          "paginationMode": "infinite-scroll",
          "parseJsonOutput": true
        }
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "8ada5770-7a77-4e75-8342-f0cad8146e4d",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -980,
        -680
      ],
      "parameters": {
        "color": 5,
        "width": 820,
        "height": 1380,
        "content": "README\n\n# Facebook Group Scraper\n\n## Use Case\n\nExtracting content from Facebook Groups allows community managers, marketers, and researchers to gather insights, monitor discussions, and collect engagement metrics efficiently. This automation streamlines the process of retrieving non-sponsored post data from group feeds.\n\n## What This Automation Does\n\nThis automation extracts key post details from a Facebook Group feed using the following input parameters:\n\n* **Facebook Group URL**: The URL of the Facebook Group feed you want to scrape.\n* **Airtop Profile**: The name of your [Airtop Profile](https://portal.airtop.ai/browser-profiles) authenticated to Facebook.\n\nIt returns up to 5 non-sponsored posts with the following attributes for each:\n\n* Post text\n* Post URL\n* Page/profile URL\n* Timestamp\n* Number of likes\n* Number of shares\n* Number of comments\n* Page or profile details\n* Post thumbnail\n\n## How It Works\n\n1. **Form Trigger**: Collects the Facebook Group URL and Airtop Profile via a form.\n2. **Browser Automation**:\n\n   * Initiates a new browser session using Airtop.\n   * Navigates to the provided Facebook Group feed.\n   * Uses an AI prompt to extract post data, including interaction metrics and profile information.\n3. **Structured Output**: The results are returned in a defined JSON schema, ready for downstream use.\n\n## Setup Requirements\n\n1. [Airtop API Key](https://portal.airtop.ai/api-keys) — Free to generate.\n2. An [Airtop Profile](https://portal.airtop.ai/browser-profiles) logged into Facebook.\n3. An [n8n instance](https://n8n.io/) with the Airtop integration enabled.\n\n## Next Steps\n\n* **Integrate With Analytics Tools**: Feed the output into dashboards or analytics platforms to monitor community engagement.\n* **Automate Alerts**: Trigger notifications for posts matching certain criteria (e.g., high engagement, keywords).\n* **Combine With Comment Automation**: Extend this to reply to posts or engage with users using other Airtop automations.\n\nLet me know if you’d like this saved as a `.md` file or included in your Airtop automation library.\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "33402a6d-082e-4fb9-8ad0-90275049a366",
  "connections": {
    "22789f80-781f-42c4-89c4-ebbf32745a05": {
      "main": [
        [
          {
            "node": "31c32d54-5fe3-4125-9e29-029a1c955822",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

初級 - 人工知能

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
初級
ノード数3
カテゴリー1
ノードタイプ3
難易度説明

n8n初心者向け、1-5ノードのシンプルなワークフロー

作成者

Airtop provides an intelligent browser automation API for AI agents, enabling seamless web interaction, including login, navigation, and data extraction from any site, even those with complex authentication - all with natural language instructions.In simple terms, we allow you to automate anything humans can do online, on any site with just words

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34