Skip to content

glwbr/ue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uber Extractor

A CLI tool for extracting and exporting Uber trip data from your account.

Features

  • Fetch complete trip history from Uber's GraphQL API
  • Export data in JSON or CSV format
  • Location clustering and tracking
  • Date range filtering with flexible syntax
  • Summary views for quick analysis

Installation

From source:

make install

Or build manually:

make build
./bin/ue

Usage

Authentication

First, log in with your Uber account:

ue login

You'll need to provide your Uber cookie from browser dev tools. Open browser, go to riders.uber.com, open developer tools (F12), go to Application > Cookies, and copy the value of the __cf_bm or similar cookie.

Check your login status:

ue status

Logout if needed:

ue logout

Fetching Trips

Fetch last 7 days of trips in JSON format:

ue trips --last 7d

Fetch trips for a specific date range in CSV format:

ue trips --from 2024-01-01 --to 2024-01-31 --output csv

Show summary without fetching full details:

ue trips --last 30d --summary

Viewing Locations

List all saved locations (clustered from trip data):

ue locations

Development

Build:

make build

Run tests:

make test

Format code:

make fmt

Clean build artifacts:

make clean

Project Structure

cmd/ue/              # CLI entry point
cmd/                 # Command implementations
internal/            # Internal packages
  auth/              # Authentication logic
  uberapi/           # Uber API client
  locations/         # Location clustering
  trips/             # Trip data models
  format/            # Output formatting (JSON, CSV)
  datetime/          # Date/time utilities
  parser/            # Data parsing
  transform/         # Data transformation

Requirements

  • Go 1.25.4 or later

About

An Uber ^ETL?$, because there’s no quick way to get this from Uber itself

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors