A python library to automate facebook group administration
Note: Thi library is under active development. Lots more to come. To update
pip install -U --no-deps fbadmin
other dependencies and the package itself can be installed via pip
pip install fbadmin
Login and instantiate FBgroup
from fbadmin import login,FBGroup group_url='https://www.facebook.com/groups/782652721814257/' group=FBGroup(login(),group_url)
Print all applicants and the number of groups they are members of.
for applicant in group.applicants: print applicant.name,applicant.groupcount Liviu Vs Ze'us 17 Iliya Tamarkin 24 Raj K Rana 21 Royendgel Silberie 41 Bishnu Prasad Chowdhury 27 Taranjeet Galactus Singh 13 Aws Al-Aisafa 4 أحمد محمود محمد عبدالوهاب 49 Lha Ckg 22 Krishna Jha 10 Bhavesh Nigam 48 Jeevan Anand Anne 19 Sai Sandeep 19 Raga Tarun 25 Tarun Tremendous 48 Aakeem Coleman 37 Bill Pearce 17 Derrick Kearney 17
Block if member of more than 100 groups and approve if member of less than 10 groups
for applicant in group.applicants: if applicant.groupcount>100: group.block(applicant) elif applicant.groupcount<=10: group.approve(applicant)
for page in group.get_members(): for member in page: print member.name #prints member names one page at a time
Get source of member’s homepage(for spam analysis)
Teardown when done with it
Please look at the code for other functionality. There are docstrings.
needs a config file of following format to be saved as credentials.cfg
#This is the configuration file. Enter FB credentials here. [credentials] email = firstname.lastname@example.org password = youcanttaketheskyfromme
Suggestions/Comments/Issues can be sent at email@example.com
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size fbadmin-0.1.0.3.tar.gz (4.8 kB)||File type Source||Python version None||Upload date||Hashes View|