from bs4 import BeautifulSoup
data = []
path = './web/new_index.html'
with open(path, 'r') as f:
    Soup = BeautifulSoup(f.read(), 'lxml')
    titles = Soup.select('ul > li > div.article-info > h3 > a')
    pics = Soup.select('ul > li > img')
    descs = Soup.select('ul > li > div.article-info > p.description')
    rates = Soup.select('ul > li > div.rate > span')
    cates = Soup.select('ul > li > div.article-info > p.meta-info')
for title, pic, desc, rate, cate in zip(titles, pics, descs, rates, cates):
    info = {'title': title.get_text(), 'pic': pic.get('src'), 'descs': desc
        .get_text(), 'rate': rate.get_text(), 'cate': list(cate.
        stripped_strings)}
    data.append(info)
for i in data:
    if len(i['rate']) >= 3:
        print(i['title'], i['cate'])

7eb0c132af2b6940cc06856ba8eec3cc886caefb
<mask token>

<mask token>
with open(path, 'r') as f:
    Soup = BeautifulSoup(f.read(), 'lxml')
    titles = Soup.select('ul > li > div.article-info > h3 > a')
    pics = Soup.select('ul > li > img')
    descs = Soup.select('ul > li > div.article-info > p.description')
    rates = Soup.select('ul > li > div.rate > span')
    cates = Soup.select('ul > li > div.article-info > p.meta-info')
for title, pic, desc, rate, cate in zip(titles, pics, descs, rates, cates):
    info = {'title': title.get_text(), 'pic': pic.get('src'), 'descs': desc
        .get_text(), 'rate': rate.get_text(), 'cate': list(cate.
        stripped_strings)}
    data.append(info)
for i in data:
    if len(i['rate']) >= 3:
        print(i['title'], i['cate'])

<mask token>
data = []
path = './web/new_index.html'
with open(path, 'r') as f:
    Soup = BeautifulSoup(f.read(), 'lxml')
    titles = Soup.select('ul > li > div.article-info > h3 > a')
    pics = Soup.select('ul > li > img')
    descs = Soup.select('ul > li > div.article-info > p.description')
    rates = Soup.select('ul > li > div.rate > span')
    cates = Soup.select('ul > li > div.article-info > p.meta-info')
for title, pic, desc, rate, cate in zip(titles, pics, descs, rates, cates):
    info = {'title': title.get_text(), 'pic': pic.get('src'), 'descs': desc
        .get_text(), 'rate': rate.get_text(), 'cate': list(cate.
        stripped_strings)}
    data.append(info)
for i in data:
    if len(i['rate']) >= 3:
        print(i['title'], i['cate'])

from bs4 import BeautifulSoup
data = []
path = './web/new_index.html'
with open(path, 'r') as f:
    Soup = BeautifulSoup(f.read(), 'lxml')
    titles = Soup.select('ul > li > div.article-info > h3 > a')
    pics = Soup.select('ul > li > img')
    descs = Soup.select('ul > li > div.article-info > p.description')
    rates = Soup.select('ul > li > div.rate > span')
    cates = Soup.select('ul > li > div.article-info > p.meta-info')
for title, pic, desc, rate, cate in zip(titles, pics, descs, rates, cates):
    info = {'title': title.get_text(), 'pic': pic.get('src'), 'descs': desc
        .get_text(), 'rate': rate.get_text(), 'cate': list(cate.
        stripped_strings)}
    data.append(info)
for i in data:
    if len(i['rate']) >= 3:
        print(i['title'], i['cate'])
