takes a getlog requests result
        returns a table as df

def pg2df(res):
    '''
        takes a getlog requests result
        returns a table as df
    '''
    # parse res
    soup = BeautifulSoup(res.text)
    
    if u'Pas de r\xe9ponse pour cette recherche.' in soup.text:
        pass # <-- don't pass !
    
    else:
        params = urlparse.parse_qs(urlparse.urlsplit(res.url)[-2])
        tb = soup.find_all('table')[0]
        data = [
            [col.text for col in row.find_all('td')] + [params['dep'][0], params['mod'][0]]
            for row in tb.find_all('tr')[1:]] # <-- escape header row
        data = [dict(zip(
            [u'depcom', u'date', u'obs', u'dep', u'mod'], lst)) for lst in data]
            
        return pd.DataFrame(data)