Как парсить WEB на Python
#парсинг #python #уроки
import requests
from bs4 import BeautifulSoup
import time
Apple = “:NASDAQ“
user_agent = “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/ (KHTML, like Gecko) Chrome/ Safari/“
headers = {’user agent’: user_agent}
html = (Apple, headers)
#print()
soup = BeautifulSoup(, ’’)
price = (’div’, {’class’ : ’YMlKec fxKbKc’})
print(price[0].text[1:])