Skip to main content

django-cms plugin to scrape a Google Photos public album link for photo urls.

Project description


djangocms-scrape-google-photos-album is a plugin for django CMS that allows you to include a public google photo album in your site by way of scraping their html.

WARNING: This is implementation is likely to break due to the nature of scraping. The regex will need to be updated whenever google changes the structure of that page.


  • python 3.5+
  • django 1.11 (other versions may work, but this is the only one that has been tested)
  • django-cms 3.5 (other versions may work, but this is the only one that has been tested)


pip install djangocms-scrape-google-photos-album


Note: Results are cached for 30 minutes. If this doesn't serve your needs, make an issue.


Override the template included, as it's likely to not be the html that you want. Below is an example of how you could use it with Bootstrap 3 and featherlight.js.


{% if photo_urls %}
  <div class="container-fluid">
    <div class="row" data-featherlight-gallery data-featherlight-filter="a" data-featherlight-type="image">
      {% for photo_url in photo_urls %}
        <div class="col-xs-6 col-sm-4 col-md-3">
          <a href="{{ photo_url }}=w1200-h1200">
            <img src="{{ photo_url }}=w300-h300-c" class="img-responsive" />
      {% endfor %}
{% endif %}

Project details

Download files

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

Files for djangocms-scrape-google-photos-album, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size djangocms_scrape_google_photos_album-0.0.2-py2-none-any.whl (19.2 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size djangocms-scrape-google-photos-album-0.0.2.tar.gz (17.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page