Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Technical arguments

aet edited this page Feb 10, 2022 · 1 revision

Technical arguments

⚠️ Technical arguments need to be put before the module name !

They are made for debug and development purpose.

Raw raising

Argument --raw-raising will raise Exceptions instead of printing them. e.g.:

# Let's admit I use a wrong credential
>>> sterra export -lcrd USERNAME WRONG_PASSWORD *args
>>> LoginError: Invalid credentials.

# Now same but with --raw-raising
>>> sterra --raw-raising export -lcrd USERNAME WRONG_PASSWORD *args
>>> Traceback (most recent call last):
  File "./sterraxcyl/sterra/core.py", line 289, in <module>
    main()
  File "./sterraxcyl/sterra/core.py", line 285, in main
    result = globals()[module.upper()](**kwargs)
  File "./sterraxcyl/sterra/core.py", line 43, in EXPORT
    scraper = _instagram(_,**kwargs)
  File "./sterraxcyl/sterra/stegram.py", line 96, in __init__
    sessionid = _credToSessID(kwargs.get("login_credentials"))
  File "./sterraxcyl/sterra/stegram.py", line 55, in _credToSessID
    _.r(LoginError("Invalid credentials."))
  File "./sterraxcyl/sterra/_outputs_.py", line 18, in r
    raise e
SterraException.LoginError: Invalid credentials.

No colors

Argument --no-colors will turn all prints in Black and White.