import requests
from bs4 import BeautifulSoup
import re
def bring_data ():
url = 'https://coinmarketcap.com/'
header = {'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36'}
web_request = requests.get(url,headers=header)
web_soup = BeautifulSoup(web_request.content, 'html.parser')
table_crypto_soup = web_soup.find('table', class_='sc-db1da501-3 ccGPRR cmc-table')
re_crypto_names = r'<p class="sc-65e7f566-0 iPbTJf coin-item-name">([\w\s]+)<\/p>'
crypto_names = re.findall(re_crypto_names, str(re_crypto_names))
print(crypto_names)
bring_data()
نتيجة تخرج لي فقط []
اين مشكل