Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 57f5f66246
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (27 sloc) 970 Bytes
from google.appengine.ext import webapp
from google.appengine.api import users
import gdata.service
import gdata.alt.appengine
import os
from google.appengine.api import memcache
from doifetch import doiFetchInfo
from urltitlefetch import urlTitleFetch
from nytimesfetch import nytimesFetchInfo
from cachedfetch import cachedFetch
from django.utils import simplejson as json
from RedirectTarget import getRedirectTarget
from DomainParser import domainFromURL
print 'Content-Type: text/html; charset=utf-8'
print ''
print """<!DOCTYPE html><html><head>
<title>Wikipedia citation tool for Google Books</title>
print '<br>CURRENT_VERSION_ID: ', os.environ['CURRENT_VERSION_ID']
print '<br>memcache stats: ', memcache.get_stats()
url = ""
domain = domainFromURL(url)
print '<br /> domain:'
print domain
print '<br /> Redir:'
print getRedirectTarget(domain)
print "</body></html>"
Jump to Line
Something went wrong with that request. Please try again.