Skip to main content

Module url

Module url 

Source
Expand description

URL parsing for Google Drive links

Supports various Google Drive URL formats:

  • https://drive.google.com/uc?id=
  • https://drive.google.com/file/d//view
  • https://drive.google.com/open?id=
  • https://docs.google.com/document/d//edit
  • https://docs.google.com/spreadsheets/d//edit
  • https://docs.google.com/presentation/d//edit

Functions§

build_download_url
Build a download URL from a file ID
build_export_url
Build an export URL for Google Docs/Sheets/Slides
is_google_drive_url
Check if URL is a Google Drive URL
parse_url
Parse a Google Drive URL and extract the file ID.

Type Aliases§

FileId
Google Drive file ID (typically 26 alphanumeric characters)