keboola / gmail-extractor

Gmail Extractor - Docker application for extracting messages from Gmail.
MIT License
1 stars 0 forks source link

Progress during extraction #2

Closed ujovlado closed 8 years ago

ujovlado commented 8 years ago

Bolo by fajn vidiet progress pocas fetchovania emailov, napr. "Downloading page 1 of XX"

ujovlado commented 8 years ago

Takto to dava:

root@0a2bff1da609:/code# php src/run.php --data=/data
Queries: 2
Processing query: to:some.address@example.com
Processed results: 100
Processed results: 200
Processed results: 300
Processed results: 340
Done.
Processing query: from:newsletters-no-reply@myfonts.com OR from:notifications@github.com
Processed results: 100
Processed results: 139
Done.
Halama commented 8 years ago

to vypada dobre. Nevraci to na zacatku i kolik toho bude celkem? Ze by to ukazoval treba Processed results: 100 / 950 ...

ujovlado commented 8 years ago

@Halama ano, tak som to chcel, no getResultSizeEstimate vracia nezmysly (resp. vyzera to skor na priblizny pocet pre aktualnu stranku). Tuna som napr. stahoval 410 emailov a zakazdym som volal tu funkciu.

Estimate size: 103
Estimate size: 103
Estimate size: 103
Estimate size: 103
Estimate size: 10
ujovlado commented 8 years ago

Nehal by som to zatial takto a potom skusim upgradnut na novsiu verziu ich client library, ci to nefixli.

Halama commented 8 years ago

jo v pohode. imho to takhle vraci to jejich API, stejne se tusim chova google vyhledavani. Tak bych to asi neresil