Commits

Benoit Boissinot committed ac0744e

fix url, move to python2.7

Comments (0)

Files changed (2)

-application: jorf2rss
+application: jorf2rss-hrd
 version: 1
-runtime: python
+runtime: python27
 api_version: 1
+threadsafe: false
 
 handlers:
 - url: /update-jorf
 
 ref_regexp = re.compile('cidTexte=(?P<ref>.*?)&')
 def findrefs(date):
-    url = 'http://www.legifrance.gouv.fr/rechJO.do?champJour=%02d&champMois=%02d&champAnnee=%d&bouton=Rechercher' % (date.day, date.month, date.year)
+    url = 'http://www.legifrance.gouv.fr/rechJO.do?champDateJ=%02d&champDateM=%02d&champDateA=%d&bouton=Rechercher' % (date.day, date.month, date.year)
     f = urllib2.urlopen(url)
     logging.info("Fetching '%s', geturl: %s" % (url, f.geturl()))
     if not 'affichJO' in f.geturl():