i m try to make the date to be concise,but i m try so many method,it doesn't work : **i m try many method to solve this data,but it can't work ,strip() and replace method looks like the picture one,it doesn't work,please help me ,online waiting**

        import requests
    from lxml import html,etree
    from selenium import webdriver
    import time, json
    
    
    file_name = 'dubanxinlixue.json'
    
    driver = webdriver.Chrome()
    url_string = []
    name_data, price_data = [], []
    jd_goods_data = {}
    page = 0
    while True:
    
        url = 'https://book.douban.com/tag/%E5%BF%83%E7%90%86%E5%AD%A6?start={page}&type=S'.format(page=page)
        url_string.append(url)
        page += 20
        if page > 980:
            break
    
    for i in url_string:
        driver.get(i)
        base_html = driver.page_source
        selctor = etree.HTML(base_html)
        j = 1
        for j in range(20):
            j += 1
    
            name = '//*[@id="subject_list"]/ul/li[%d]/div[2]/h2/a[1]/@title'%(j)
            get_name =selctor.xpath(name)[0]
            describe = '//*[@id="subject_list"]/ul/li[%d]/div[2]/div[1]/text()'%(j)
            get_describe = selctor.xpath(describe)[0]
    
            describe.replace('\t\r\n\f', '')
            print(get_describe)


with open(file_name, 'w') as f:
    json.dump(jd_goods_data, f)


    the get_describe looks like this ,[the result of get_describe][1]


  [1]: https://i.stack.imgur.com/f3O2F.png



