Python gadget that captures txt text/word email addresses in documents

Source: Internet
Author: User

Recent HR personnel Little sister asked me to look for a Python gadget that crawled a mailbox in a Txt/word document when I first entered the job. Because it is the new period written, very humble, but can use.

I put the link here with the need for pickup:

https://github.com/chenyaoyu/custom_tools/tree/27fc4f8d19b27b0b636b1ec66df13d6932aec53f

The following is a description of the tool:

I. Preparing the tool environment (note: The path does not have Chinese or strange symbols):
1. Install "Python-2.7.7.msi"
2.32-bit system installs "pywin32-221.win32-py2.7", 64-bit system installs "pywin32-221.win-amd64-py2.7"
3. Right click on "My Computer", select "Properties", select "Advanced System Configuration", in the "System Properties" window into the "Advanced" column, check "Environment variables", in the "System variables" column to find the "Path", if any, select "Edit" and add the Python installation directory.

Two. Use of the tool: Copy the findmail.py to the directory where the document needs to be retrieved (no sub-directory traversal is done here), double-click to execute, and select command line execution. It will generate:
Mailbox Fetch Result: Result.txt
Scan trace log: Trace.log, if there is a missing file, there will be "cout:0" word.

Three. Exception Handling:
1. If the script execution is unsuccessful, first check if the directory named "Fm_temp" exists, delete it.
2. If the script execution is unsuccessful, check that the directory is in Chinese.
3. Forcibly close the WPS temp file that may be left with a "~" prefix and delete it.
4. If the script execution is unsuccessful, please find the program.

Python gadget that captures txt text/word email addresses in documents

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.