{ "info": { "author": "intelligenia S.L.", "author_email": "diego@intelligenia.es", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "License :: OSI Approved :: MIT License" ], "description": "django-last-social-activity\n===========================\n\nA simple application for `Django `__ to\nfetch the last posts of your social network profiles in your site.\n\nIntroduction\n============\n\nThis package allows you to fetch your last status from your favorite\nsocial networks without having to reimplement any functionality or\nintegrating them on the browser side.\n\nThe development repository is\nhttps://github.com/intelligenia/django-last-social-activity.\n\nThe main aim of this software is having `Django template\ntags `__\nready to load your last posts in templates:\n\n.. code:: html\n\n {# Load django-last-social-activity template tags #}\n {% load last_social_activity %}\n\n
\n {# Get the last 10 items of your RSS 'myblog' as defined in settings.py #}\n {% last_rss_items 'myblog' 10 %}\n\n {# Get the last 3 posts of your Facebook wall #}\n {% last_facebook_posts 3 %}\n\n {# Get the last 8 tweets #}\n {% last_tweeets 8 %}\n\n {# Get the last 12 images of Instagram #}\n {% last_instagram_media 12 %}\n\n {# Get the last 15 pins of Pinterest #}\n {% last_pinterest_pins 15 %}\n\n {# Get the last 25 photos of 500px #}\n {% last_fivehundred_media 25 %}\n\n {# Get the last 5 photos of flickr #}\n {% last_flickr_media 5 %}\n
\n\nThe idea is personalize the default templates in your **templates**\nfolder as you need.\n\nInstallation\n============\n\n`This package is in\npypi `__ so\nyou can install it easily using pip command:\n\n.. code:: sh\n\n pip install django-last-social-activity\n\nor install it from `this GitHub\nrepository `__\nif you want last features of the master branch:\n\n.. code:: sh\n\n # Master will allways be stable\n pip install https://github.com//intelligenia/django-last-social-activity/archive/master.zip\n\nDependencies\n============\n\nThis package depends on some other Python packages:\n\n- beautifulsoup4\n- python-dateutil\n- python-twitter\n- requests\n\nThey are included in the requirements of this package so you won't have\nto install them by hand.\n\nConfiguration\n=============\n\nDjango settings.py\n------------------\n\nThe first step is include the application **last\\_social\\_activity** to\nyour INSTALLED\\_APPS tuple:\n\n.. code:: python\n\n INSTALLED_APPS = (\n #...\n \"last_social_activity\"\n #...\n )\n\nThe second step is configuring what social networks you want to include\nin your site.\n\nPut this dictionary in your **settings.py** file filling the.\n\n.. code:: python\n\n LAST_SOCIAL_ACTIVITY_CREDENTIALS = {\n \"twitter\": {\n \"profile_url\": \"\",\n \"username\": \"\",\n \"consumer_key\": \"\",\n \"consumer_secret\": \"\",\n \"access_token_key\": \"\",\n \"access_token_secret\": \"\"\n },\n \"instagram\": {\n \"profile\": \"\",\n \"access_token\" :\"\"\n },\n \"pinterest\": {\n \"profile\": \"\",\n \"access_token\" :\"\"\n },\n \"facebook\": {\n \"profile\": \"\",\n \"access_token\" :\"\"\n },\n \"fivehundred\":{\n \"profile\": \"<500px username>\",\n \"access_token\": \"<500px consumer key>\"\n }\n \"flickr\":{\n \"access_token\": \"\",\n \"user_id\": \"\",\n \"album_id\": \"\"\n }\n \"rss\": {\n \"\"{\n \"url\": \"
\",\n \"rss_url\": \"\",\n }\n }\n }\n\nIf you don't want to fetch some social network (or don't have an\naccount), you can leave empty the dictionary for that social network.\n\nThus, you have to include the cache configuration:\n\n.. code:: python\n\n # Cache stores information for 1 hour\n LAST_SOCIAL_ACTIVITY_CACHE_DURATION_IN_HOURS = 1\n LAST_SOCIAL_ACTIVITY_CACHE_DURATION_IN_MINUTES = None\n LAST_SOCIAL_ACTIVITY_CACHE_DURATION_IN_SECONDS = None\n\nBy default, it caches the last posts/items in your profile in each\nsocial network for 1 hour if you want to change that, set None the\nfields you don't want and set a number for the field you want.\n\nNote the amount of duration is not additive so you only can define max\nlifetime for full hours, minutes and seconds.\n\nMigrations\n----------\n\nDon't forget to execute migrations to create cache table for this\napplication.\n\n.. code:: sh\n\n python manage.py migrate\n\nUse\n===\n\nTemplate tags\n-------------\n\nLoad this template tag in your templates:\n\n.. code:: html\n\n {% load last_social_activity %}\n\nFor example:\n\n.. code:: html\n\n\n {# Get the last 10 items of your RSS 'mysite' channel as defined in settings.py #}\n {% last_rss_items 'mysite' 10 %}\n\n {# Get the last 3 posts of your Facebook wall #}\n {% last_facebook_posts 3 %}\n\n {# Get the last 8 tweets #}\n {% last_tweeets 8 %}\n\n {# Get the last 12 images of Instagram #}\n {% last_instagram_media 12 %}\n\n {# Get the last 15 pins of Pinterest #}\n {% last_pinterest_pins 15 %}\n\n {# Get the last 25 photos of 500px #}\n {% last_fivehundred_media 25 %}\n\n {# Get the last 5 images of Flickr #}\n {% last_flickr_media 5 %}\n\nCustomization\n-------------\n\nCustomize each one of the templates creating a directory\n**last\\_social\\_activity** with one child with the name\n**social\\_networks**. That directory will contain a template for each\nsocial network (and your RSS channel if is configured):\n\n- facebook.html\n- instagram.html\n- pinterest.html\n- rss.html\n- twitter.html\n- fivehundred.html\n- flickr.html\n\nFacebook\n~~~~~~~~\n\nYou have a list of post objects called **posts** with the following\nattributes:\n\n- id: id of this post\n- name: title of the post.\n- created\\_time: creation datetime of the post.\n- type: type of the post.\n- message: content of the post.\n- link: link to this facebook post.\n- permalink\\_url: link to this facebook post.\n\nTake a look to the `default\ntemplate `__\nfor an example.\n\nInstagram\n~~~~~~~~~\n\nData available comes from the member **data** of the following URL:\n`https://api.instagram.com/v1/users/self/media/recent/?access\\_token=XXXX `__\n\nLook to the `default\ntemplate `__.\n\nPinterest\n~~~~~~~~~\n\nAvailable fields are the ones returned by\n`https://api.pinterest.com/v1/me/pins/?access\\_token=XXXX `__.\n\nLook to the `default\ntemplate `__.\n\n500px\n~~~~~\n\nAvailable fields are the ones returned by\n`https://api.500px.com/v1/photos?consumer\\_key=XXXX `__.\n\nLook to the `default\ntemplate `__.\n\nFlickr\n~~~~~~\n\nAvailable fields are the ones returned by\n`https://api.flickr.com/services/rest/ `__.\n\nLook to the `default\ntemplate `__.\n\nRSS\n~~~\n\nAll RSS data is available as context in the template in the\n**rss\\_items** list.\n\nYou can access to all the attributes of each of your RSS items: name,\ndescription, pubdate, etc.\n\nLook to the `default\ntemplate `__.\n\nTwitter\n~~~~~~~\n\nAvailable context is a dict with the following structure:\n\n.. code:: python\n\n {\n \"tweets\": [\n {\n \"id\": \"\",\n \"text\": \"\",\n \"created_at\": \"\"\n },\n # ...\n ],\n \"profile_url\": \"\",\n \"username\": \"\"\n }\n\nLook to the `default\ntemplate `__.\n\nAuthors\n=======\n\n- Francisco Morales Gea\n (REMOVETHISfrancisco.REMOVETHISmorales@intelligenia.com)\n (development)\n- Diego J. Romero L\u00f3pez (diegoREMOVETHIS@intelligenia.com)\n (corresponding author, software architecture, caching and\n fault-tolerance)\n\nRemove REMOVETHIS before emailing to one of the authors.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/intelligenia/django-last-social-activity", "keywords": "simple social networks integration wall tweet facebook twitter instagram pinterest rss", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-last-social-activity", "package_url": "https://pypi.org/project/django-last-social-activity/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-last-social-activity/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/intelligenia/django-last-social-activity" }, "release_url": "https://pypi.org/project/django-last-social-activity/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "A simple application for Django to fetch the last posts of your social network profiles in your site.", "version": "0.2.1" }, "last_serial": 4306159, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d45d1f5f2bd719e1d090337659d7e5d7", "sha256": "995e434b55e450cede8688a3fdf17fe7b902d93bc2e3aea7283f43c2f13241cc" }, "downloads": -1, "filename": "django-last-social-activity-0.1.tar.gz", "has_sig": false, "md5_digest": "d45d1f5f2bd719e1d090337659d7e5d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15083, "upload_time": "2017-02-03T17:11:32", "url": "https://files.pythonhosted.org/packages/d4/1f/7d6bcad3e53b376875adc6500ee71be39ef2c54a7dd6ed50e3fabb3043cb/django-last-social-activity-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "8c2d62a92fd3bc70e219f98bcb86e19c", "sha256": "de5651b92d78670f269e20546b93056e5bc782da3029d7137fe6b3fc44d23f30" }, "downloads": -1, "filename": "django-last-social-activity-0.1.1.tar.gz", "has_sig": false, "md5_digest": "8c2d62a92fd3bc70e219f98bcb86e19c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31215, "upload_time": "2017-02-06T11:12:26", "url": "https://files.pythonhosted.org/packages/f7/d6/0ff4e842920e93c2994daf2c7f7269655c416cfa5901bb0f3fdad1ea7eae/django-last-social-activity-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "3ed3d5005ea0d1ba73ff7e0a4d8aaff3", "sha256": "398b7869cea67c5302e5e2ac25d7308f8bc17f00231465e982f7268139c7aca7" }, "downloads": -1, "filename": "django-last-social-activity-0.1.2.tar.gz", "has_sig": false, "md5_digest": "3ed3d5005ea0d1ba73ff7e0a4d8aaff3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 62943, "upload_time": "2017-02-06T16:28:03", "url": "https://files.pythonhosted.org/packages/78/ef/4dd60c3d78ca4d749edb1253e916b6f13b9026accfb5f6be3da60d6e3625/django-last-social-activity-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c1e72ae24fb19201c556649bcd9a4ae3", "sha256": "51126056e8ba3c2af84e382ba29f7850aceaefae77a423916242c624326133ab" }, "downloads": -1, "filename": "django-last-social-activity-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c1e72ae24fb19201c556649bcd9a4ae3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 126512, "upload_time": "2017-03-02T10:00:13", "url": "https://files.pythonhosted.org/packages/ca/3e/04e2d0dce6f51bbfd97b1385c461eac3cdf120847d89a8a3d0b1dfa3d4a1/django-last-social-activity-0.1.3.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "b198d283192c00f6549e624ca54bfd74", "sha256": "9e6f6ee1006a03957e160f54e3396691a0764b3762a3528e0040bc927c2f3206" }, "downloads": -1, "filename": "django-last-social-activity-0.2.tar.gz", "has_sig": false, "md5_digest": "b198d283192c00f6549e624ca54bfd74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 255019, "upload_time": "2017-04-17T13:19:04", "url": "https://files.pythonhosted.org/packages/c0/a3/0b8b091da618877d8db496a55cf57226c242c98eb4212f491b220b45669b/django-last-social-activity-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "8319ae24cdefdfa9649fe35acdc54986", "sha256": "aad042cd457ab67fdaa7fcb215863210804d3c8464e6b60a28f25d5a3ba5ec87" }, "downloads": -1, "filename": "django-last-social-activity-0.2.1.tar.gz", "has_sig": false, "md5_digest": "8319ae24cdefdfa9649fe35acdc54986", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17743, "upload_time": "2017-04-17T16:25:15", "url": "https://files.pythonhosted.org/packages/32/88/7c52084d8c127ae0f19cd33908a895e6b87a199fb7dcda2e7a74e637c0fc/django-last-social-activity-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8319ae24cdefdfa9649fe35acdc54986", "sha256": "aad042cd457ab67fdaa7fcb215863210804d3c8464e6b60a28f25d5a3ba5ec87" }, "downloads": -1, "filename": "django-last-social-activity-0.2.1.tar.gz", "has_sig": false, "md5_digest": "8319ae24cdefdfa9649fe35acdc54986", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17743, "upload_time": "2017-04-17T16:25:15", "url": "https://files.pythonhosted.org/packages/32/88/7c52084d8c127ae0f19cd33908a895e6b87a199fb7dcda2e7a74e637c0fc/django-last-social-activity-0.2.1.tar.gz" } ] }