+ 2
How to store user input data(HTML form) in excel sheet using python????
3 ответов
0
♦️in addition I want to edit the question♦️
how to to store the input in encrypted form so that no one can read it.. but python will print it if we want to display the store data
for example :
my_pass=input("Enter password : )
now how to store the inputed data in encrypted form..
so that if someone tries to print passwords it should be in encrypted form..
but when we print the data then it should be in plain text...
I know we can encrypt using cipher but when user looks into the source code then he will find the key to decode the encrypted data.... but we want to prevent it from decoding..
how can we achive it?
0
Required Libraries:
1. openpyxl. for interacting with Excel files
2. `Flask` or `Django` for handling HTML form data (optional)
3. `pandas` for data manipulation (optional)
Steps:
Method 1: Using openpyxl
1. Install `openpyxl`: `pip install openpyxl`
2. Create an HTML form to collect user input
3. Use a Python script (e.g., Flask) to handle form data
4. Use `openpyxl` to write data to an Excel file
Method 2: Using pandas
1. Install `pandas`: `pip install pandas`
2. Collect user input data
3. Create a pandas DataFrame
4. Use `to_excel()` function to write data to an Excel file