Skip to content

Commit

Permalink
COG 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesboeufs committed Aug 22, 2018
1 parent 6ed35ce commit c3e391b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/cog.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const toArray = require('get-stream').array
const {trimStart, trimEnd, keyBy} = require('lodash')
const {bufferToStream} = require('./buffer-stream')

const COMMUNES_2017_URL = 'https://www.insee.fr/fr/statistiques/fichier/2666684/france2017-txt.zip'
const COMMUNES_2018_URL = 'https://www.insee.fr/fr/statistiques/fichier/3363419/France2018-txt.zip'

async function getCommunesBuffer() {
const response = await request.get(COMMUNES_2017_URL)
const response = await request.get(COMMUNES_2018_URL)
.buffer(true)
.parse(request.parse['application/octet-stream'])
const archiveBuffer = response.body
Expand Down

0 comments on commit c3e391b

Please sign in to comment.