ewjoachim

Untitled

Jan 12th, 2014
271
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # -*- coding: utf-8 -*-
  2.  
  3. import urllib
  4.  
  5. def citriq(params):
  6.     errors = "\n".join([
  7.         "Le paramètre {} est obligatoire".format(param)
  8.         for param in ("uid", "isbn") if param not in params
  9.     ])
  10.     if not errors:
  11.         return '<script type="text/javascript" src="http://citriq.net/w/crawl?{}"><script>'.format(urllib.urlencode(params))
  12.     elif params.get("debug", 0) == 1 and errors:
  13.         print "Erreur Citriq : {}".format(errors);
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×