A Python Wrapper To Retrieve Data From The CrowdTangle API
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Built Distribution
Close
Hashes for PyCrowdTangle-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 292c5fdc9054445ff1041bb1a7ca5b8824d14cbce97bc590ce1a1a2271b9946c |
|
MD5 | e6148bfcc99cdb413333a1f59e1aa3cb |
|
BLAKE2-256 | fc96bf56bda6c00bdab34c5df40c7b725d3a55f11933ab1f4d37b82b17a8049e |