Facebook Groups Scraper avatar
Facebook Groups Scraper
Try for free

7 days trial then $45.00/month - No credit card required now

View all Actors
Facebook Groups Scraper

Facebook Groups Scraper

apify/facebook-groups-scraper
Try for free

7 days trial then $45.00/month - No credit card required now

Extract data from one or multiple public Facebook groups. Get group and post URLs, post text, comments, timestamp, likes and comments count, and basic commentator info. Download the data in JSON, CSV, and Excel and use it in apps, spreadsheets, and reports.

User avatar

Retrieving Group Title

Open

threatx opened this issue
17 days ago

I would like to retrieve the group name in the result, or use "pageFunction", where we send a function as a string (e.g., at the end of this description) to add the title or other items to the return value.

"pageFunction": "async function pageFunction(context) {\n const { request, log } = context;\n const $ = context.$;\n const title = $('title').text();\n log.info(`URL: ${request.url} TITLE: ${title}`);\n return {\n title,\n context\n };\n}",

User avatar

Hi! Page function considered as obsolete for all the actors - confusing for many users and therefore not considered as good approach. To illustrate - your page function can not be applied because actor based on data from internal FB API and there is literally no page title tag available during scraping.

For right now please modify dataset by i.e. https://apify.com/lukaskrivka/dedup-datasets or some other actor integration.

As closest alternative do you think adding entire "root" object with group details to each post will work for you?

Developer
Maintained by Apify
Actor metrics
  • 464 monthly users
  • 2 stars
  • 100.0% runs succeeded
  • 1.5 days response time
  • Created in Nov 2022
  • Modified about 13 hours ago