Metadata-Version: 2.1
Name: faceMongo
Version: 0.0.2
Summary: Scrape facebook public page to mongo database
Home-page: https://github.com/toraaglobal/faceMongo
Author: Tajudeen Abdulazeez
Author-email: toabdula@syr.edu
License: UNKNOWN
Description: ***
        ## 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
        
        ```
        python -m pip install --index-url https://test.pypi.org/simple/ faceMongo-toraaglobal
        ```
        ***
        ### 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
        
        ```
        import FaceMongo
        fm = FaceMongo('facebook','localhost',27017) # database, host and port
        fm.fb_page_to_db('donaldtrump',nums= 200) # retrieve 200 pages from donaldtrump page and save it in the 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
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
