How to Set the Language of an HTML Document in Python

pip install cloudmersive-convert-api-client
from __future__ import print_function
import time
import cloudmersive_convert_api_client
from import ApiException
from pprint import pprint
# Configure API key authorization: Apikey
configuration = cloudmersive_convert_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = cloudmersive_convert_api_client.EditHtmlApi(cloudmersive_convert_api_client.ApiClient(configuration))
language_code = 'language_code_example' # str | The HTML langauge code to set.
input_file = '/path/to/inputfile' # file | Optional: Input file to perform the operation on. (optional)
input_file_url = 'input_file_url_example' # str | Optional: URL of a file to operate on as input. (optional)
# Sets the language for the HTML document
api_response = api_instance.edit_html_html_set_language(language_code, input_file=input_file, input_file_url=input_file_url)
except ApiException as e:
print("Exception when calling EditHtmlApi->edit_html_html_set_language: %s\n" % e)




There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium


Flutter Widget In Focus — Chip (Know It All)

Career as a Software Engineer: 10 Tips on Starting Out

Guide to Building a Career as a Scrum Master

Relation model concept and it’s advantage & disadvantage

Highrise to HubSpot CRM Migration: Exceed Your Business Expectations [+ Video]— Data2CRM

Hacking with Swift — Challenge 9

Python for Beginners

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

More from Medium

Generate a EAN-8 code barcode as PNG file in Python

Top 8 Features of Python Language That You Must Know

Top 8 Python Features

Python for Beginners🐍 By Ansh Sharma

VSCode GitHub plung-in issue