Skip to content

python script that scrapes Facebook group post member profile and saves every single picture in it

License

Notifications You must be signed in to change notification settings

menggatot/facebook-group-post-images-archiver-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook Group Post Image Archiver

This project's purpose is to archive every single image of a single profile in the FB group.

dependency :

  • python 3.8+
  • selenium
  • pickle
  • webdriver chrome
  • urllib
  • time
  • re

The Preparation

> How to get the url in line 25
It has to be the mobile version of FB ex: m.facebook.com
To get the URL, you need to press their profile when you're on the group page while you're in the mobile version of Facebook
What does the URL look like? And please don't use this. this is just an example https://m.facebook.com/firstname.lastname?groupid=2187593695444431&ref=content_filter
after you get the url now you can paste it in driver.get() example:

# please do not use this, this is just an example
driver.get('https://m.facebook.com/firstname.lastname?groupid=2187593695444431&ref=content_filter)

> How to generate cookies.pkl to login to Facebook automatically
Run python ./CreateCookies.py Insert your email and password, press login, and then ok. After the window close, look at your directory. There should be a file named cookies.pkl

How to run the script

Make sure your cookies.pkl is at the same directory as FBScrapper.py then run it as usual.

python ./FBScrapper.py

About

python script that scrapes Facebook group post member profile and saves every single picture in it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages