我想从给定URL导出所有手机号码。 目前,它仅适用于一页。如何从该站点导出所有页面?
import requests
from bs4 import BeautifulSoup
r=requests.get("https://yellowpages.az/Az/results/?search-title=a&search-by=brand&sort-by=asc")
sayt=r.content
sayt1=BeautifulSoup(sayt)
print(sayt1.prettify())
linkler=sayt1.find_all("a")
for link in linkler :
print (link.get("href"))