1

Is there any python package which converts the uploaded Ms Word document to html content.As in my application am uploading a document and i want to convert it into html

any suggestion o nthis will help

Thanks

2 Answers 2

1

You could call unoconv from within Python.

Sign up to request clarification or add additional context in comments.

Comments

0

import requests

Prompt user to input their IP address

user_ip = input('Enter your IP: ')

Construct the URL using the user-provided IP address

url = f"https://ipinfo.io/widget/demo/{user_ip}"

headers = { "Host": "ipinfo.io", "sec-ch-ua-platform": "Android", "User-Agent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36", "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"', "Content-Type": "application/json", "sec-ch-ua-mobile": "?1", "Accept": "/", "sec-fetch-site": "same-origin", "sec-fetch-mode": "cors", "sec-fetch-dest": "empty", "Referer": "https://ipinfo.io/", "Accept-Encoding": "gzip, deflate, br, zstd", "Accept-Language": "en-US,en;q=0.9,ta;q=0.8,id;q=0.7", "Cookie": "_gcl_au=1.1.1727933713.1732433238; _ga_3MZZVKJJB0=GS1.1.1732433238.1.0.1732433238.60.0.1253076071; _ga=GA1.1.2083657317.1732433239; _ga_RWP85XL4SC=GS1.1.1732433238.1.0.1732433238.60.0.492221781; csrf_token=e2787659-0c52-4b35-89d2-b5f3e8e21bcf; _clck=1hqnbfu%7C2%7Cfr5%7C0%7C1789; __hstc=97467072.b675e1673dfc0e6cc2deeb6efd91655d.1732433239703.1732433239703.1732433239703.1; hubspotutk=b675e1673dfc0e6cc2deeb6efd91655d; __hssrc=1; __hssc=97467072.1.1732433239703; _clsk=1qf084q%7C1732433240222%7C1%7C1%7Ci.clarity.ms%2Fcollect", "Priority": "u=1, i" }

response = requests.get(url, headers=headers)

print(response.text)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.