Created
February 2, 2021 08:21
-
-
Save mai0li/37a1ef1ce412ba66e1920017bc0d3351 to your computer and use it in GitHub Desktop.
Consulting AAPL stock prices in BVMF in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from requests_html import HTMLSession | |
from bs4 import BeautifulSoup | |
import lxml | |
session = HTMLSession() | |
link = session.get('https://www.google.com/search?q=aapl34') | |
html = BeautifulSoup(link.text, 'lxml') | |
valor = html.find('span', class_='IsqQVc') | |
print(valor.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment