Skip to content

belimawr/wsgi_seo_iframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEO iframe Replacer

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)

Requirements

This packege requires PhantomJS to be installed manually.

You can download a compatible version of PhantomJS here: http://phantomjs.org/download.html

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages