Skip to content

Instantly share code, notes, and snippets.

@mai0li
Created February 2, 2021 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mai0li/37a1ef1ce412ba66e1920017bc0d3351 to your computer and use it in GitHub Desktop.
Save mai0li/37a1ef1ce412ba66e1920017bc0d3351 to your computer and use it in GitHub Desktop.
Consulting AAPL stock prices in BVMF in Python
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