Create two label in Gmail
example "input" and "output"
and create rule for label "input" in order to get the emails under that label
After the process it changes the label to "output"
After that you can do anything with data, example import to database or save it.
Run this command in terminal:
$ python setup.py build
create run.bat file and add this line:
start /d "//fullpath/Gmail_Tables_Read" Gmail_Tables_Read.exe