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.

TH

Retrieving Group Title

Closed

threatx opened this issue
2 months 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}",

alexey 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?

alexey avatar

Hi!

Added group title as groupTitle output value, see sample run https://console.apify.com/view/runs/I9Gq9iYaWFiIVXhr3

I´m going to close the issue now, but if there would be anything else we could help with, please let us know.

Developer
Maintained by Apify
Actor metrics
  • 382 monthly users
  • 26 stars
  • 99.9% runs succeeded
  • 1.8 days response time
  • Created in Nov 2022
  • Modified 5 days ago