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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file mezzanine-instagram-feed-1.1.0.tar.gz.

File metadata

  • Download URL: mezzanine-instagram-feed-1.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for mezzanine-instagram-feed-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ff1766dfe6c2d35409d18a0a26b314d901ebcaaa489e5ca199b147af9a39d760
MD5 82fa36dc6bcf53f9d1e452e71ecd179e
BLAKE2b-256 9f342224de21201eb16d68a81e8a0236746005d491d2f1397b07792aaf7d636c

See more details on using hashes here.

File details

Details for the file mezzanine_instagram_feed-1.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: mezzanine_instagram_feed-1.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for mezzanine_instagram_feed-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2b56c72da46aa8a42440ee553ef92be6ccfc0d2b3194801ce12ed8993edf59dc
MD5 f3d0192d741940db95ae1567a06dbf05
BLAKE2b-256 57a81d307905bb3caab20d59ff95446f6ad70a36a9a3aac78bd0bfc14b23c451

See more details on using hashes here.

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