def get_info(res):
    """
    This will extract info about result, provided by libgen.
    input: res , one of results for the search.
    output: info, a dictionary 
            info['author'] : author of the book
            info['title']  : title of the book
            info['pages']  : number of pages in the book
            info['lang']   : language of the book
            info['size']   : size of the book
            info['type']   : file type of the book i.e. pdf, djvu
            info['links']  : links (mirror links)
            info['code']   : book code used by libgen
            info['download_page'] : currently mirror link with source 93.174.95.29 is selected by default.
    """
    info = {}
    
    temp = res.find_all('td')
    info['author'] = temp[1].text
    info['title'] = temp[2].text
    val = ''.join(list(filter(str.isdigit,temp[5].text)))
    try:
        val = int(val)
    except:
        val = 0
     
    info['pages'] = val
    info['lang'] = temp[6].text
    info['size'] = temp[7].text
    info['type'] = temp[8].text
        
    info['links'] = [x.a['href'] for x in temp[9:-1]]
    def get_code(link):
        return link.split('/')[-1]
    info['code'] = get_code(info['links'][0])
    def get_download_page(links):
        for i in links:
            if 'http://93.174.95.29/_ads/' in i:
                return i
        return None
    info['download_page'] = get_download_page(info['links'])
    
    
    
    return info