Last active
December 27, 2021 09:45
-
-
Save gpirrotta/1136abf724b839406916b4a46d243db0 to your computer and use it in GitHub Desktop.
Using Carbon Calculator from INI File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from carbon.calculator import CarbonCalculator | |
carbon = CarbonCalculator.from_ini_file('config.ini') | |
carbon.footprint("https://www.unime.it") | |
print(carbon.co2_grams) | |
//0.29566587414592505 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment