bellingcat / wayback-google-analytics

A lightweight tool for scraping current and historic Google Analytics data
https://pypi.org/project/wayback-google-analytics/
MIT License
192 stars 23 forks source link

Inaccurate timestamps (fix #9) #11

Closed jclark1913 closed 1 year ago

jclark1913 commented 1 year ago

This PR fixes the inaccurate first/last seen timestamps. There is an extra check in place that only replaces a first/last seen timestamp if it is lesser/greater than the current value, so its irrelevant what order the async requests are processed. The 14-digit timestamps are converted to dates after asyncio.gather() runs each of the tasks.