Skip to main content

faceMongo


Scrape facebook public page and save it in a mongo database as a collection of documents. Retrieve a collection from mongo database.


Installattion


Run the following command in your terminal to install the package

pip install faceMongo

Usage


Scraping facebook public page Using donaldtrump and saviing it in a mongo database named facebook. Assuming you have a mongo database installed locally.

The following code will retrive and save the document in your mongo database

from faceMongo import faceMongo

fm = faceMongo.FaceMongo('facebook','localhost',27017) # database, host and port
fm.fb_page_to_db('donaldtrump') # scrape donaldtrump page to database

Retrieving collection from the mongo database To retrive donaldtrump collection from the facebook database, The code below will return the collection of documents in a list

docs = fm.docs_from_db('donaldtrump' )


Licence


MIT License

Metadata

Release files for faceMongo 0.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 faceMongo 0.0.5
File Size Uploaded
faceMongo-0.0.5.tar.gz 1.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for faceMongo 0.0.5
File Interpreter ABI Platform
faceMongo-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 4.1 kB

Release files / faceMongo-0.0.5.tar.gz

Download URL faceMongo-0.0.5.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
77161664b1ae4f452cf9cd7f3adc7a6e95a1a04c9332166b3618af9426b66011
BLAKE2b-256 checksum
How to use checksums
437fa04c74d280568507c887ff673a5525cd60a6541230d49cd8124638c97a0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / faceMongo-0.0.5-py3-none-any.whl

Download URL faceMongo-0.0.5-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4afaf84635d81fd962a3cac484d19a250eac33d9ab616f78d6b479361ed4b2f3
BLAKE2b-256 checksum
How to use checksums
d2efab86d0d3c265f2a3f0e2e244707d74c16613381aef73ebb6e65dfc7c6778
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

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