đŸ‘„ Scraping Facebook Group Members

I have put together a simple blueprint that lets you scrape members from Facebook groups and store the data in a Google Sheets file.

To get started, you’ll need a few things. First, if you don’t already have a Browserflow account, you should make one here. You’ll also need an account with Make.com, which you can create here, if you haven’t done so yet. Lastly, make sure you have access to the Facebook group from which you want to scrape member data.

Step 1: Login to Browserflow and Download the Template

  1. Log In to Browserflow: Go to app.browserflow.io/login and log into your account.
  2. Get API Key: Go to the settings page and copy your API key.

3. Download the Facebook Scraping Template:

  • Navigate to the Templates tab.
  • Search for “Get Facebook Group Members” and click Download Template.

4. Store Facebook Cookies (First-Time Setup Only):

  • If asked, click Get Required Cookies.

  • A login window will appear. Enter your Facebook credentials and verify via any required security steps (like two-factor authentication).
  • Once logged in, click Save Login Cookies to start the download of your template.

Step 2: Import Blueprint into Make.com and Set Variables

  1. Login to Make.com: Go to your Make.com dashboard and open the Scenarios section.
  2. Create a New Scenario:
  • Click Create a new scenario at the top-right corner.
  • In the bottom-center toolbar, click the three dots and select Import Blueprint.
  • Upload the downloaded template file.
  • Your scenario should look like this:

3. Add Browserflow API Key:

  • Click on the first module, named “Start Browserflow Session.”
  • Select Add Connection, and paste your Browserflow API key.

4. Test the Setup:

  • Go to the Set Variables module and add the Facebook Group URL of the persons page you wish to scrape. Make sure that the url ends on /members like in this image.

  • Also make sure that you are a member of this group too. If you are not a member, you cannot scrape the other members.
  • Now click Run to test the flow!

Step 3: Monitor the Bot in Browserflow

  1. Track Bot Progress:
  • Go to app.browserflow.io/advanced to view your session.
  • In the Your running bots overview, click View to see your bot’s progress in real-time. (This may take a minute to load.)
  • You can interact with the session as it runs, though the flow should proceed without manual intervention.

Step 4: Manage Results

Once ran, you will receive an output with multiple bundles. in the bundles is an array named “data”. This array contains all data. The data that has been retrieved is the name, your relation with the user and a tagline (if the person has that one). You will also receive a ‘Group User URL’ this is a different URL than their normal facebook account URL and links to their personal page in this Facebook group. If you would like to translate this URL to a profile url you should grab the template called; Convert Member URL to Profile URL from app.browserflow.io/templates.

Use to convert Member Url to Profile Url

Step 5: Store Results in Google Sheets Or CRM

Depending on what you are trying to achieve you might want to store your results somewhere. You can attach this flow to Hubspot, Pipedrive or any other module that exists in make but for this example I’ll show you how to add the results to google sheets.

  1. Add Iterator:
  • First add an iterator after the last module and iterate over the ‘data’ output variable from the last module;

2. Copy Google Sheets Template:

3. Add Google Sheets Module in Make.com:

  • After the last module, add the Google Sheets “Add Rows” module.
  • Connect your Google account and select your copied Facebook scraping sheet.

4. Set Spreadsheet and Sheet ID:

  • If you can’t locate the file, select Enter Manually in the Search Method dropdown.
  • In your Google Sheets document, copy the Sheet ID from the URL and paste it into the Spreadsheet ID field.

5. Set Sheet Name & Column variables:

  • Set the Sheet Name to GroupMembers and select column range A-Z
  • Then fill the output data fields from the iterator in the right column as shown in the picture:

Step 6: Run the Workflow

  1. Run the Flow:
  • Whenever you click Run once in your Make Editor, the flow will begin and your Google Sheets file should be filled.

Pro Tip:

If you would like to store the Facebook profile URL and not the Member You can best open another Make.com window, there import the ‘Convert Member URL to Profile URL’ template. Then use a Google Sheets module to read the Member URLs that you have collected using this guide and use them to find the Facebook Profile URLs. I will soon make a guide for this too.

Happy Automating

By automating this process, you’ll save time scraping Facebook group data into a structured format like Google Sheets for further analysis or outreach.

Remember to always stay mindful of Facebook’s Terms of Service and use this automation responsibly to avoid any potential issues with account bans or restrictions.

Happy Automating!

Notes:

  • Facebook Restrictions: Be cautious as Facebook limits scraping and can block accounts that violate its terms.
  • API Limits: Ensure that your requests to Facebook are limited to reasonable intervals to avoid overloading the servers.
1 Like