Skip to main content

fbadmin

A python library to admin facebook groups that uses selenium and phantomjs behind the scenes

Supported Python versions License Development Status

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)

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.5

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.5
File Size Uploaded Provenance Actions
fbadmin-0.1.0.5.tar.gz 4.8 kB Without provenance Details for fbadmin-0.1.0.5.tar.gz

Release files / fbadmin-0.1.0.5.tar.gz

Download URL fbadmin-0.1.0.5.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b2fa57f27161ec197899cba33999b8811c16fb57a2a417e56dc2b0265bdc4169
BLAKE2b-256 checksum
How to use checksums
e78fdb4b2ba7bfe7fc19b488f642fc1a3317c90a4a3d0406d5d95d64353dbfb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for fbadmin 0.1.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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