Skip to main content

WSGI middleware for replacing iframes by their html content, allowing them to be crowled by search engines

Project description

SEO iframe Replacer is a wsgi middleware to replace iframes containing ‘src’ attribute by its rendered html code. It is used to allow content rendered by Ajax to be indexed by search engines like Google. Typical usage on a django’s WSGI script:

import os
from django.core.wsgi import get_wsgi_application
from wsgi_seo_iframe import IframeReplacerMiddleware

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")

application = get_wsgi_application()
application = IframeReplacerMiddleware(application)


This packege requires PhantomJS to be installed manually.

You can download a compatible version of PhantomJS here:

In Debian based systems you can install it using: sudo apt-get install phantomjs

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 wsgi-seo-iframe, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size wsgi-seo-iframe-0.1.1.tar.gz (12.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page