This program retrieves task data from TodoistAPI, saves it to a text file, and uploads the data to the BatchGeo platform, generating a map link that is then sent to a predefined email address.
- Todoist API Integration: Fetches task data using the Todoist API.
- Data Export: Saves task details to a text file (
Batchgeoinfo.txt
). - BatchGeo Upload: Utilizes Helium automation to upload data to BatchGeo for map generation.
- Email Notification: Sends a map link to a predefined email address.
- Setup: Ensure Python and required libraries (
helium
,todoist-python
) are installed. - Configuration:
- Set up Todoist API token (
api = TodoistAPI('YOUR_API_TOKEN')
). - Adjust email and BatchGeo configurations.
- Set up Todoist API token (
- Execution: Run the script to export data and generate a BatchGeo map link.
- The script requires Python and certain libraries (
helium
,todoist-python
). - Ensure Todoist tasks have due dates and descriptions for accurate data extraction.
- Email and BatchGeo configurations are hardcoded and can be modified for dynamic inputs.
- Convert script to an executable file for easier distribution.
- Implement user input for email address and other dynamic configurations.
- Refactor code for improved readability and maintainability.
Note: This script is a prototype and may require adjustments based on specific use cases and environments.