import requests
from bs4 import BeautifulSoup
url ='https://www.csdn.net/'
response = requests.get(url=url)
soup = BeautifulSoup(response.text,'lxml')
title ='\n'.join([res.text.strip()for res in soup.find_all(class_="navigation-right")])print(title)