faceMongo-0.0.5
توضیحات
Scrape facebook public page to mongo database
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | faceMongo-0.0.5 |
| نام | faceMongo |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tajudeen Abdulazeez |
| ایمیل نویسنده | toabdula@syr.edu |
| آدرس صفحه اصلی | https://github.com/toraaglobal/faceMongo |
| آدرس اینترنتی | https://pypi.org/project/faceMongo/ |
| مجوز | - |
***
## 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
نیازمندی
| مقدار | نام |
|---|---|
| - | facebook-scraper |
| - | pymongo |
| - | tqdm |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl faceMongo-0.0.5:
pip install faceMongo-0.0.5.whl
نصب پکیج tar.gz faceMongo-0.0.5:
pip install faceMongo-0.0.5.tar.gz