workplace-extractor


Nameworkplace-extractor JSON
Version 0.9.7 PyPI version JSON
download
home_pagehttps://github.com/denisduarte/workplace_extractor
SummaryExtract data created in a corporate Workplace by Facebook installation using the Graph/SCIM APIs
upload_time2023-12-14 13:42:42
maintainer
docs_urlNone
authorDenis Duarte
requires_python
licenseMIT
keywords extractor workplace
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Workplace Extractor
<p style="float: right;">
  <b>Python package to extract posts from</b>
  <img src="https://raw.githubusercontent.com/denisduarte/midia/main/workplace.png" width="100" height="24">
  <img src="https://raw.githubusercontent.com/denisduarte/midia/main/from_facebook.png" width="100" height="9">
</p>

# Overview
The Workplace Extractor package was written to allow a complete extraction of posts form a Workplace installation. It provides the following key features:

* Access to the SCIM and GRAPH API provided by Facebook;
* Asyncronous calls to increase speed;
* Lists of **posts**, **members**, **groups**, **comments**, **event attendees** are exported to CSV files;
* A ranking of most relevant members can be created based on the number of interctions (comments and reactions)
* The interaction network can be wxported to a GEXF file;

# Usage

### Installation
To get the Workplace Extractor package, either fork this github repo or use Pypi via pip.
```sh
$ pip install workplace_extractor
```
### How to use it

You can simple run a python script with the code below:

```sh
import workplace_extractor

workplace_extractor.run()
```


This package uses [argparse](https://docs.python.org/3/library/argparse.html) and [Gooey](https://github.com/chriskiehl/Gooey) to create an end-user-friendly front end GUI application. Just run the app and a dialog will show up asking for the input parameters.

The application will offer some extraction options:

1. **POSTS** - used for extracting all posts published in a given period of time or feed, from a given author etc.

    <img src="https://raw.githubusercontent.com/denisduarte/midia/main/Workplace%20App%201%20-%20Posts.png" width="402" height="337">


2. **Comments** - used for extracting all comments made in a post.

    <img src="https://raw.githubusercontent.com/denisduarte/midia/main/Workplace%20App%202%20-%20Comments.png" width="402" height="337">


3. **People** - used for extracting all Workplace users.

    <img src="https://raw.githubusercontent.com/denisduarte/midia/main/Workplace%20App%203%20-%20People.png" width="402" height="337">


4. **Groups** - used for all groups.

    <img src="https://raw.githubusercontent.com/denisduarte/midia/main/Workplace%20App%204%20-%20Groups.png" width="402" height="337">


5. **Members** - used for extracting all members of a group

    <img src="https://raw.githubusercontent.com/denisduarte/midia/main/Workplace%20App%205%20-%20Members.png" width="402" height="337">

6. **Attendees** - used for extracting all attendees of an event.

    <img src="https://raw.githubusercontent.com/denisduarte/midia/main/Workplace%20App%206%20-%20Attendees.png" width="402" height="337">

7. **Interactions** - used for extracting interactions among all workplace users. This option can be used can be used with a network visualization solution, such as [Gephi](https://gephi.org/), for further analysis.

    <img src="https://raw.githubusercontent.com/denisduarte/midia/main/Workplace%20App%207%20-%20Interactions.png" width="402" height="337">


**You must have an access token with full access to both SCIM and GRAPH API in order to the extraction to work**

A config.ini file con be used to set some key parameters. Two required ones are:

* **output_dir** - path the folder where the output will be stored
* **access_token** - path to a file containing the Workplace access token

# Warning
As many http calls are made during the export process, your program may take a while to finish, depending on the size of your Workplace installation. As a reference, on an installation with around 85,000 users, 3,000 groups and 110,000 posts the exectution takes around 4 hours to complete.

# License

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Copyright 2021 Denis Duarte

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/denisduarte/workplace_extractor",
    "name": "workplace-extractor",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "extractor,workplace",
    "author": "Denis Duarte",
    "author_email": "den.duarte@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/00/e7/97b68a480122dec11334208868f7923544f92e0f70fa56b3e312ec1d17c5/workplace_extractor-0.9.7.tar.gz",
    "platform": null,
    "description": "# Workplace Extractor\n<p style=\"float: right;\">\n  <b>Python package to extract posts from</b>\n  <img src=\"https://raw.githubusercontent.com/denisduarte/midia/main/workplace.png\" width=\"100\" height=\"24\">\n  <img src=\"https://raw.githubusercontent.com/denisduarte/midia/main/from_facebook.png\" width=\"100\" height=\"9\">\n</p>\n\n# Overview\nThe Workplace Extractor package was written to allow a complete extraction of posts form a Workplace installation. It provides the following key features:\n\n* Access to the SCIM and GRAPH API provided by Facebook;\n* Asyncronous calls to increase speed;\n* Lists of **posts**, **members**, **groups**, **comments**, **event attendees** are exported to CSV files;\n* A ranking of most relevant members can be created based on the number of interctions (comments and reactions)\n* The interaction network can be wxported to a GEXF file;\n\n# Usage\n\n### Installation\nTo get the Workplace Extractor package, either fork this github repo or use Pypi via pip.\n```sh\n$ pip install workplace_extractor\n```\n### How to use it\n\nYou can simple run a python script with the code below:\n\n```sh\nimport workplace_extractor\n\nworkplace_extractor.run()\n```\n\n\nThis package uses [argparse](https://docs.python.org/3/library/argparse.html) and [Gooey](https://github.com/chriskiehl/Gooey) to create an end-user-friendly front end GUI application. Just run the app and a dialog will show up asking for the input parameters.\n\nThe application will offer some extraction options:\n\n1. **POSTS** - used for extracting all posts published in a given period of time or feed, from a given author etc.\n\n    <img src=\"https://raw.githubusercontent.com/denisduarte/midia/main/Workplace%20App%201%20-%20Posts.png\" width=\"402\" height=\"337\">\n\n\n2. **Comments** - used for extracting all comments made in a post.\n\n    <img src=\"https://raw.githubusercontent.com/denisduarte/midia/main/Workplace%20App%202%20-%20Comments.png\" width=\"402\" height=\"337\">\n\n\n3. **People** - used for extracting all Workplace users.\n\n    <img src=\"https://raw.githubusercontent.com/denisduarte/midia/main/Workplace%20App%203%20-%20People.png\" width=\"402\" height=\"337\">\n\n\n4. **Groups** - used for all groups.\n\n    <img src=\"https://raw.githubusercontent.com/denisduarte/midia/main/Workplace%20App%204%20-%20Groups.png\" width=\"402\" height=\"337\">\n\n\n5. **Members** - used for extracting all members of a group\n\n    <img src=\"https://raw.githubusercontent.com/denisduarte/midia/main/Workplace%20App%205%20-%20Members.png\" width=\"402\" height=\"337\">\n\n6. **Attendees** - used for extracting all attendees of an event.\n\n    <img src=\"https://raw.githubusercontent.com/denisduarte/midia/main/Workplace%20App%206%20-%20Attendees.png\" width=\"402\" height=\"337\">\n\n7. **Interactions** - used for extracting interactions among all workplace users. This option can be used can be used with a network visualization solution, such as [Gephi](https://gephi.org/), for further analysis.\n\n    <img src=\"https://raw.githubusercontent.com/denisduarte/midia/main/Workplace%20App%207%20-%20Interactions.png\" width=\"402\" height=\"337\">\n\n\n**You must have an access token with full access to both SCIM and GRAPH API in order to the extraction to work**\n\nA config.ini file con be used to set some key parameters. Two required ones are:\n\n* **output_dir** - path the folder where the output will be stored\n* **access_token** - path to a file containing the Workplace access token\n\n# Warning\nAs many http calls are made during the export process, your program may take a while to finish, depending on the size of your Workplace installation. As a reference, on an installation with around 85,000 users, 3,000 groups and 110,000 posts the exectution takes around 4 hours to complete.\n\n# License\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nCopyright 2021 Denis Duarte\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Extract data created in a corporate Workplace by Facebook installation using the Graph/SCIM APIs",
    "version": "0.9.7",
    "project_urls": {
        "Homepage": "https://github.com/denisduarte/workplace_extractor",
        "Repository": "https://github.com/denisduarte/workplace_extractor"
    },
    "split_keywords": [
        "extractor",
        "workplace"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "28889c5c91a1ea5386e1bc8120871766ebafab5d7653ba01897b60dd311134a0",
                "md5": "35a6ba511a01768c24741b95ecfcf4a2",
                "sha256": "091bf6a50f674b0f6920157202a7b767d60dd058a3b530cadea7b9e9535f3845"
            },
            "downloads": -1,
            "filename": "workplace_extractor-0.9.7-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "35a6ba511a01768c24741b95ecfcf4a2",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 28293,
            "upload_time": "2023-12-14T13:42:39",
            "upload_time_iso_8601": "2023-12-14T13:42:39.695879Z",
            "url": "https://files.pythonhosted.org/packages/28/88/9c5c91a1ea5386e1bc8120871766ebafab5d7653ba01897b60dd311134a0/workplace_extractor-0.9.7-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "00e797b68a480122dec11334208868f7923544f92e0f70fa56b3e312ec1d17c5",
                "md5": "ceae1b48b4d9a8349ac5824b50a6559f",
                "sha256": "49b9c27c54cdc602b484da023af7187817a2525d54d3f97b522bfd686b4a5cce"
            },
            "downloads": -1,
            "filename": "workplace_extractor-0.9.7.tar.gz",
            "has_sig": false,
            "md5_digest": "ceae1b48b4d9a8349ac5824b50a6559f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 22424,
            "upload_time": "2023-12-14T13:42:42",
            "upload_time_iso_8601": "2023-12-14T13:42:42.234627Z",
            "url": "https://files.pythonhosted.org/packages/00/e7/97b68a480122dec11334208868f7923544f92e0f70fa56b3e312ec1d17c5/workplace_extractor-0.9.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-14 13:42:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "denisduarte",
    "github_project": "workplace_extractor",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "workplace-extractor"
}
        
Elapsed time: 0.15541s