import requests
import xlsxwriter
from bs4 import BeautifulSoup
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
workbook = xlsxwriter.Workbook('C:/Users/Desktop/data.xlsx')
worksheet = workbook.add_worksheet()
row = 0
column = 0
linkrow =0
urls = ["https://www.esportsearnings.com/tournaments"] #add more url by adding here
for i in urls:
page = requests.get(i)
soup = BeautifulSoup(page.content, 'html.parser')
i=1
for link in soup.find_all('a'):
a=link.get('href')
worksheet.write(linkrow,0,a)
print(link.get('href'))
linkrow += 1
workbook.close()
# for link in soup.find_all('td'):
# print(link.get_text())
Попробуйте этот код