Selenium | google takeout | linkedin connections | Search

google timeline

Scrape google timeline

This code provides functions to automate interactions with the Google Maps timeline, including navigating to the page, logging in, selecting a specific date, and handling different page states.

Read single google timeline page

This code snippet extracts structured timeline data, such as dates, titles, durations, and locations, from a webpage, likely a social media platform or personal website. It uses XPath expressions to target specific elements and chrono-node to parse dates from the extracted text.

Find the average latitute and longitude at each destination

This code processes Google Timeline data to identify and categorize destinations by finding nearby geographical locations associated with each timeline entry. It then calculates average coordinates for these destinations and filters out entries that are not relevant.

Reconcile timeline data with calendar

This code snippet correlates Google Calendar events with nearby locations based on location names, event summaries, and event locations, likely for analyzing travel patterns or daily routines. It identifies matching events and locations, logging the results for further analysis.

Load location export data

This code snippet defines a function loadLocations that parses a JSON file containing location data, groups locations by date, and stores them in a cache for efficient retrieval. It uses a custom importer module to stream the JSON data and process it asynchronously.

reconcile timeline

This code snippet processes location history data from Google Takeout and combines it with timeline data from Google Calendar, likely for analysis or visualization purposes. It uses Selenium to scrape timeline data and writes the reconciled data to JSON files.

search timeline events

This code snippet provides a function timelineEvents that retrieves timeline event data for a specified date from a JSON file stored in a user-specific directory. It handles both date object and string inputs and constructs a unique file path based on the date.