Skip to main content

Dependencies

phantomjs

Easiest way to install phantomjs is via npm
npm install phantomjs

selenium

pip install selenium

Usage

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)

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

Metadata

Release files for fbadmin 0.1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fbadmin 0.1.0.1
File Size Uploaded
fbadmin-0.1.0.1.tar.gz 4.2 kB Details

Release files / fbadmin-0.1.0.1.tar.gz

Download URL fbadmin-0.1.0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1f807dc8b848330fb851e404ac583409e9dbd01e7a19ad80623e2f319d040893
BLAKE2b-256 checksum
How to use checksums
53b35d321dda74002eec35e59c0e0bbfa63ec47d9e66071e18075cd596e1a6a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.1.0.5

1 release file

0.1.0.4

1 release file

0.1.0.3

1 release file

0.1.0.2

1 release file

This release

0.1.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page