Extension Twitter Feed Viewer


Extension Basics

Title
Twitter Feed Viewer
Name
ckanext-twitterview
Type
Public extension
Description
Preview Twitter feed resources in CKAN
CKAN versions
Download-Url (zip)
Download-Url commit date
2017-02-17
Url to repo
Category
Visualization & Analytics


Background Infos

Description (long)
Show details

Extension that adds a view for displaying Twitter feeds directly within CKAN resource pages. Users can create Twitter feed resources by entering ‘Twitter Feed’ as the format and a Twitter profile URL (e.g., https://twitter.com/ckanproject) as the resource URL. The extension provides configurable options for controlling feed display including maximum number of tweets to show and whether to exclude replies/retweets. When max_feeds_count is not configured, displays 20 tweets by default with a ‘Load more’ button. The view integrates seamlessly with CKAN’s resource preview system and must be added to both ckan.plugins and ckan.views.default_views configuration settings. Developed for CKAN instances wanting to embed Twitter content alongside data resources.

Version
0.0.1
Version release date
2017-02-17
Contact name
Yan
Contakt email
Contact Url
(not set)


Installation Guide

Configuration hints

Installation: git clone https://github.com/DataShades/ckanext-twitterview.git, activate CKAN virtualenv, python setup.py develop. Add ‘twitter_view’ to ckan.plugins in config file: ckan.plugins = twitter_view. Add to default_views: ckan.views.default_views = twitter_view. Configuration: ckan.twitter.max_feeds_count = 10 (optional - if not set, shows 20 tweets by default with ‘Load more’ button). ckan.twitter.exclude_replies = False (optional - set to True to exclude retweets). Creating Twitter Resources: At resource create form, enter ‘Twitter Feed’ in Format field and Twitter profile URL in URL field (e.g., https://twitter.com/ckanproject where ‘ckanproject’ is the username). Testing: Configure test databases per CKAN docs (http://docs.ckan.org/en/latest/contributing/test.html), update password in sqlalchemy.url in test-core.ini, add config options to test.ini, set correct path to test-core.ini (use = config:/usr/lib/ckan/default/src/ckan/test-core.ini), run: nosetests –with-pylons=test.ini –nologcapture –rednose -s -x -v –reset-db. Python 2.6-2.7 supported. Dependencies: None listed.

Plugins to configure (ckan.ini)
twitter_view
CKAN Settings (ckan.ini)
# ckan.twitter.max_feeds_count = 10 (If the value is not setup, 20 tweets will be shown by default and a "Load more" button will appear under the last tweet)
DB migration to be executed
twitterview
<< back to Extensions