Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A python library to automate facebook group administration

Project Description

Note: This library is under active development. Lots more to come. To update

pip install -U --no-deps fbadmin

Dependencies

phantomjs

Easiest way to install phantomjs is via npm
npm install phantomjs

other dependencies and the package itself can be installed via pip

pip install fbadmin

Usage

Login and instantiate FBgroup

from fbadmin import login,FBGroup
group_url='https://www.facebook.com/groups/782652721814257/'
group=FBGroup(login('path/to/credentials.cfg'),group_url)

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)

Get members

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)

html=group.peak(member.url)

Teardown when done with it

group.quit()

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 = malcolmreynolds@serenity.com
password = youcanttaketheskyfromme

Suggestions/Comments/Issues can be sent at dodo.dodder@gmail.com

Release History

Release History

This version
History Node

0.1.0.5

History Node

0.1.0.4

History Node

0.1.0.3

History Node

0.1.0.2

History Node

0.1.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
fbadmin-0.1.0.5.tar.gz (4.8 kB) Copy SHA256 Checksum SHA256 Source Jan 22, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting