PyCrowdTangle
A Python Wrapper To Retrieve Data From The CrowdTangle API
Install
pip install PyCrowdTangle
Update
pip install PyCrowdTangle -U
Example
Usage
ct_get_posts
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
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()
ct_get_lists
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_lists(api_token="AKJHXDFYTGEBKRJ6535")
#show results
print(data)
Release files for PyCrowdTangle 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyCrowdTangle-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / PyCrowdTangle-0.5.0-py3-none-any.whl
| Download URL | PyCrowdTangle-0.5.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c89a653fbfcdbdeaa7b29d8915e17af5dde11e9afb631b3061eaab534732a7b
|
|
BLAKE2b-256 checksum How to use checksums |
d7309e39dafc376fc68d16dbdee8640ef991002328923f3d63002f15186717b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1.post20200622 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
|