This directory contains example scripts demonstrating how to work with various Google APIs using the google-api-python-client library.
Addresses: GitHub Issue #2547 - "Google doc dates returned as unicode (e.g., \ue907)"
Purpose: Demonstrates how to properly handle Unicode placeholder characters returned by the Google Docs API for smart chips (dates, people, places, etc.).
Key Concepts:
- Understanding that
\ue907is intentional API behavior, not a bug - Extracting actual date/chip information from
richLinkproperties - Working with Google Docs API document structure
- Best practices for handling non-text elements
Usage:
# Run the demonstration (no authentication required)
python examples/docs_unicode_dates_example.py
# To analyze an actual document, modify the script with your document ID
# and uncomment the analysis function callRequirements:
google-authgoogle-api-python-client- Valid Google Docs API credentials (for real document analysis)
When contributing new examples:
- Focus on common use cases or frequently asked questions
- Include comprehensive comments and documentation
- Provide both demonstration code and real-world usage examples
- Follow the existing code style and structure
- Test thoroughly before submitting
Most examples require Google API credentials. See the authentication documentation for setup instructions.