You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a lot of comments for helpful debugging tips throughout the webscrapers. I started implementing a debugging syntax while refactoring check-acq, where a comment will start with DEBUG: and be followed by either an uncomment code or use --debug-logs to indicate how to use that section of code. The --debug-logs is used only for logging out variables, while the uncomment code usually changes variables to run less meters (for faster testing) or to manipulate the data to test various scenarios.
This syntax and flag can be implemented in the other scrapers as well to make it easier for debugging.
--headful
All scrapers run headless by default, meaning they don't show the browser. Right now, we manually set headless to false and need to remember to change it back before committing. With a flag, it will always be headless and we can make it headful without worrying about having to change it back.
--local-api
This one could maybe use a different name, but all webscrapers upload/retrieve data via the Energy Dashboard's APIs. Sometimes when testing new APIs we need to run the webscrapers and use the local API, so adding a flag to run with a local API instead of the normal one will help prevent uploading with the wrong environment variables.
The text was updated successfully, but these errors were encountered:
--debug-logs
There are a lot of comments for helpful debugging tips throughout the webscrapers. I started implementing a debugging syntax while refactoring check-acq, where a comment will start with DEBUG: and be followed by either an
uncomment code
oruse --debug-logs
to indicate how to use that section of code. The--debug-logs
is used only for logging out variables, while theuncomment code
usually changes variables to run less meters (for faster testing) or to manipulate the data to test various scenarios.This syntax and flag can be implemented in the other scrapers as well to make it easier for debugging.
--headful
All scrapers run
headless
by default, meaning they don't show the browser. Right now, we manually set headless to false and need to remember to change it back before committing. With a flag, it will always be headless and we can make it headful without worrying about having to change it back.--local-api
This one could maybe use a different name, but all webscrapers upload/retrieve data via the Energy Dashboard's APIs. Sometimes when testing new APIs we need to run the webscrapers and use the local API, so adding a flag to run with a local API instead of the normal one will help prevent uploading with the wrong environment variables.
The text was updated successfully, but these errors were encountered: