Metadata-Version: 2.1
Name: PyCrowdTangle
Version: 0.0.4
Summary: A Python Wrapper To Retrieve Data From The CrowdTangle API
Home-page: https://github.com/UPB-SS1/PyCrowdTangle
Author: Jose R. Zapata
Author-email: jjrzg@hotmail.com
License: MIT
Keywords: crowdtangle,wrapper-api
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
Requires-Dist: requests

# PyCrowdTangle
A Python Wrapper To Retrieve Data From The CrowdTangle API

https://github.com/CrowdTangle/API

## Usage

### ct_get_posts
```python
import PyCrowdTangle as pct

#retrieve data from CrowdTangle
# get the api_token from https://apps.crowdtangle.com/
# you can locate your API token via your crowdtangle dashboard
# under Settings > API Access.

data = pct.ct_get_posts(api_token="AKJHXDFYTGEBKRJ6535")

import pandas as pd

df = pd.DataFrame(data['result']['posts'])

#show results
df.head()
```
### ct_get_links
```python
import PyCrowdTangle as pct

#retrieve data from CrowdTangle
# get the api_token from https://apps.crowdtangle.com/
# you can locate your API token via your crowdtangle dashboard
# under Settings > API Access.

data = pct.ct_get_links(link= 'http://www.queenonline.com/', platforms='facebook',
                     start_date='2019-01-01',api_token="AKJHXDFYTGEBKRJ6535")

import pandas as pd

df = pd.DataFrame(data['result']['posts'])

#show results
df.head()
```



