Skip to content

Commit

Permalink
refactor: call new fundamentus.Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcamargos committed Feb 13, 2024
1 parent 3570e33 commit e7461fc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# ------------------------------------------------------------------------------

"""
Python Fundamentus is a Python API that allows you to quickly access the main
fundamental indicators of the main stocks in the Brazilian market.
Python Fundamentus API: Instant access to key financial indicators of
Brazilian stocks, empowering investors with comprehensive market analysis.
"""

import fundamentus
Expand All @@ -32,10 +32,7 @@

# pylint: disable=line-too-long
if __name__ == '__main__':
URL = 'https://www.fundamentus.com.br/detalhes.php'
PAYLOAD = {'papel': 'VALE3', 'interface': 'mobile'}

main_pipeline = fundamentus.Pipeline(url=URL, params=PAYLOAD)
main_pipeline = fundamentus.Pipeline('VALE3')
response = main_pipeline.get_all_information()

# Extract the information from the response.
Expand Down

0 comments on commit e7461fc

Please sign in to comment.