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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| faceMongo-0.0.5.tar.gz | 1.6 kB | Without provenance | Details for faceMongo-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| faceMongo-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for faceMongo-0.0.5-py3-none-any.whl |
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
|
Security for faceMongo 0.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.