Skip to main content

Connect Mezzaine sites to Instagram feeds

Project description

Mezzanine Instagram Feed

Connect Mezzanine sites to Instagram feeds

Installation

  1. Install via pip: pip install mezzanine-instagram-feed.
  2. Add instagramfeed to your INSTALLED_APPS.

Usage

Load the templatetag library and pass the username you want to query to the instagramfeed_photos template tag.

{% load instagramfeed_tags %}

{% instagram_posts "USERNAME HERE" as posts %}
{% for posts in post %}
  <a href="https://instagram.com/p/{{ post.shortcode }}">
    <img src="{{ post.thumbnail_src }}" alt="{{ post.edge_media_to_caption.edges.0.node.text }}">
  </a>
{% endfor %}

Configuration

Configuration variables read from settings.py:

Setting Default Description
SCRAPERAPI_KEY None If set will use scraperapi.com to proxy requests to Instagram

Contributing

Review contribution guidelines at CONTRIBUTING.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mezzanine-instagram-feed-1.1.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

mezzanine_instagram_feed-1.1.0-py2.py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page