url="https://www.liepin.com/campus/" import requests from bs4 import BeautifulSoup rr=requests.get(url) soup =BeautifulSoup(rr.text, "lxml") for itema in soup.select(".job-item"): uu=itema.select_one("a").get('href').split("?")[0] #print(uu) for itema in soup.select(".job-list-item"): uu=itema.select_one("a").get('href').split("?")[0] #print(uu) for ii in soup.find_all('a'): print(ii['href'])