crawlers.xpi
XPICrawler
Crawler for XP Investimentos.
Examples:
import brdata
crawler = brdata.XPICrawler()
crawler.get_analysis("PETR4")
__init__
__init__()
get_analysis
get_analysis(
code: str,
to_pandas: bool = True,
enable_cache: bool = True,
**kwargs
) → Series
Get stock analysis from XP Investimentos.
Args:
code
(str): Stock code.to_pandas
(bool, optional): Whether to return a pandas.Series or a dict. Defaults to True.enable_cache
(bool, optional): Whether to enable cache. Defaults to True.Raises:
exceptions.NotFoundException
: Stock not found.Returns:
pd.Series
: Stock analysis.This file was automatically generated via lazydocs.