Python Forum
python code help - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: python code help (/thread-26253.html)



python code help - rajendra05 - Apr-25-2020

1.Search for that name in the word document where the “process” and when found, check if that has an associated table with it.
2. Pick that table and append it in a new spreadsheet giving it the same name as the two documents.
3. Continue with the same process till all the images are covered from the HTML document (HTML document is attached) and discovered in the Word Document (Word document is attached) and moved into the spreadsheet (Sample spreadsheet is attached).
4. The spreadsheet should have the first column as the name of the block under t-code.

Please provide python code logic


RE: python code help - buran - Apr-25-2020

welcome to the forum. We are glad to help, but we are not going to do your work. Provide your code in python tags, full tracebacj if you get any - in error tags, ask specific questions.
That said, a lot of essential info is missing from your questions. You may want to provide that info (along with your code, traceback, etc.) in order for process of helping you to go smoothly.


RE: python code help - rajendra05 - Apr-25-2020

Please provide Required logic for below requirement in python
search the word document of string “process” check if that has an associated table with it and
Pick that table and append it in a new spreadsheet in excel sheet giving it the same name


RE: python code help - buran - Apr-25-2020

No, it doesn't work like this... No matter how many times you would repeat it...


RE: python code help - jefsummers - Apr-25-2020

The logic would be:
1. Open the file
2. Read file contents into memory
3. Search the file contents for the tag that denotes a table
4. If found, create an Excel spreadsheet
4a. Then copy the table to the excel document and remember to close it
5. If not found, display message and quit.

That's the code logic. The code is quite something else, but this can be used as a guide to get you started. Post your progress