Get all the names of the members of a facebook group. The scripts are written and intended to use with Python 3.7.
To use this app, you should be able to see the group members. This means that in a closed or secret group, you'll have to be a member.
git clone https://github.com/andrebrener/football_data.git
Go in the directory of the repo and run:
pip install -r requirements.txt
In constants.py insert:
USER
: Facebook mail or username.PASS
: Password.NUMBER_OF_SCROLLS
: Number of scrolls to the bottom of the page. This is done because members are loaded as the web is navigated.GROUP_MEMBERS_LINK
: The link of the group members. Eg:https://www.facebook.com/groups/<group_id>/members/
.
- Run get_members.py.
- You will see an automated browser entering to Facebook, logging in, entering the group and scroll down.
- A directory named
results
will be created in the repo with a csv file namedgroup_members.csv
.