Guardar html

    0

    0

    Víctor Jaén

    This code tries to write the contents of the file "round+plan+stick.html" to the file "f", but if the file does not exist, it outputs an error message.

    try:
      with open(f'{const.OUTPUT_DIRECTORY}\\round+plan+stick.html', 'w', encoding='utf8') as f:
        f.write(str(_page_source.prettify()))
    except:
      e = sys.exc_info()[0]
      print(f'*** ERROR guardando archivo: {e}]')
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.