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.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0d9b5740e4d5f58a56c3e2132257903eda3312d2f01281b3969ae00372220f8 |
|
MD5 | 9db827a54a48c7d2f0b69f6cfaa3a4e8 |
|
BLAKE2-256 | 80e56de3b4ecd8ec1e38b01545c69fbc4a7b0253d3afec1038fa87a76e1ffe99 |