Skip to content

Instantly share code, notes, and snippets.

@kubrick06010
Last active August 22, 2024 12:35
Show Gist options
  • Save kubrick06010/60187bdcde7bf93574613e96a60ad028 to your computer and use it in GitHub Desktop.
Save kubrick06010/60187bdcde7bf93574613e96a60ad028 to your computer and use it in GitHub Desktop.
one liner para ver el precio del dólar paralelo :(
python -c "import requests; print({key: value for key, value in requests.post('https://dolartoday.com/wp-admin/admin-ajax.php', data={'action': 'dt_currency_calculator_handler', 'amount': '1'}).json().items()})"
@kubrick06010
Copy link
Author

Ya no existe el repositorio en amazon.

@siberiaaa
Copy link

Ya no existe el repositorio en amazon.

Conocerás otro repositorio de donde obtener el dato?

@kubrick06010
Copy link
Author

@siberiaaa puedes intentar haciendo un post como el que pongo:

curl -X POST -d "action=dt_currency_calculator_handler&amount=10" https://dolartoday.com/wp-admin/admin-ajax.php

Dejo un script en python que hace la misma función.

@jesussuarz
Copy link

Ya no existe el repositorio en amazon.

Conocerás otro repositorio de donde obtener el dato?

Puedes usar mi repo: https://github.com/jesussuarz/DolarToday_PHP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment