Skip to content

Commit

Permalink
fix(readme): update README example to
Browse files Browse the repository at this point in the history
reflect the correct usage of Pipeline function.

The previous example in the README incorrectly
showed the usage of URL and params with the
Pipeline function.
Updated the example to the correct usage,
simplifying the instantiation of the Pipeline
with a single argument, and ensuring the correct
extraction of information.
  • Loading branch information
alexcamargos committed Aug 29, 2024
1 parent 7ddec4d commit 467e49a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ Para começar a usar o Python Fundamentus, siga os passos abaixo:

import fundamentus

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('WEGE3')
response = main_pipeline.get_all_information()

# Extract the information from the response.
Expand Down

0 comments on commit 467e49a

Please sign in to comment.