You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sbenv.py 412B

12345678910111213141516171819
  1. import os
  2. import http.cookiejar as cookielib
  3. def load_cookiejar():
  4. cpath = os.getenv('SB_COOKIES_TXT')
  5. print('using cookies', cpath)
  6. cj = cookielib.MozillaCookieJar(cpath)
  7. cj.load()
  8. return cj
  9. def get_google_abuse_token():
  10. return os.getenv('SB_GOOGABUSE').trim()
  11. def get_report_webhook():
  12. hu = os.getenv('SB_REPORT_WH')
  13. if hu is not None:
  14. hu = hu.strip()
  15. return hu