Scrape and save FB group posts

VincentVega

Regular Member
Joined
Nov 19, 2014
Messages
300
Reaction score
57
Hey guys,

is there a way to scrape and save posts from non-public FB groups where I'm a member of?
Would appreciate some help.

Regards
V
 
There is. The way to do it is quite obvious.

You or a script you write must be using a browser and logged into a Facebook account that is a member of the group(s) you want to scrape posts from. The algorithm of the script (or human) needs to parse the post urls in the group then go to each post url and scrape each post using html, css selectors, or xpath to determine the content that needs to be scraped.
 
There is. The way to do it is quite obvious.

You or a script you write must be using a browser and logged into a Facebook account that is a member of the group(s) you want to scrape posts from. The algorithm of the script (or human) needs to parse the post urls in the group then go to each post url and scrape each post using html, css selectors, or xpath to determine the content that needs to be scraped.
Thanks for the reply. Is there a software or script publicly available to do this?
 
If you want i have script for it based on selenium and beautiful soup. It works on closed groups :) Scrapes fresh posts from the group and sends to email
 
If you want i have script for it based on selenium and beautiful soup. It works on closed groups :) Scrapes fresh posts from the group and sends to email
Can it also scrape already existing old group posts?
 
Hey guys,

is there a way to scrape and save posts from non-public FB groups where I'm a member of?
Would appreciate some help.
Regards
V

Can I scrape Facebook groups?
Phantombuster Facebook Group Extractor
They offer support for scraping user-generated content in both Facebook groups and
communities. With this Facebook scraper tool, you can scrape Facebook profiles,
and while they are a paid tool, they do offer new clients a 14-day free trial.
 
Any other ideas? Don't know if Phantombuster can do this.
 
Did it work? I'm looking to scrape all the posts on a public business page. Do you know how to do this?
 
Might work it a start

think once you are login into facebook domain, then you can launch post URL one by one like this :

Ley's say you have a URL list like this :-

url = ['https://www.facebook.com/post1', 'https://www.facebook.com/post2', 'https://www.facebook.com/post3', ..]

you can iterate to all the post like :

url = ['https://www.facebook.com/post1', 'https://www.facebook.com/post2', 'https://www.facebook.com/post3']
s = len(url)
print(s)
for a in range(s):
driver.get(url[a])
time.sleep(2)
 
Might work it a start

think once you are login into facebook domain, then you can launch post URL one by one like this :

Ley's say you have a URL list like this :-

url = ['https://www.facebook.com/post1', 'https://www.facebook.com/post2', 'https://www.facebook.com/post3', ..]

you can iterate to all the post like :

url = ['https://www.facebook.com/post1', 'https://www.facebook.com/post2', 'https://www.facebook.com/post3']
s = len(url)
print(s)
for a in range(s):
driver.get(url[a])
time.sleep(2)
Is there software that can do this?
 
Back
Top