A collection of scripts for extracting and analyzing personal data from various services and platforms.
This repository contains scripts to help you:
- Extract your personal data from different services
- Process and analyze the extracted data
- Generate insights and statistics
- Store data in a structured format for further analysis
data-exports/
├── food/ # Food delivery services data
│ ├── wolt-orders.js # Wolt orders extraction script
│ └── wolt-stats.js # Wolt order statistics and analysis
├── data/ # Extracted data (gitignored)
│ └── wolt/ # Wolt data files
│ ├── wolt_orders.json # Recent orders (last year)
│ ├── wolt_items.json # Recent items (last year)
│ ├── all_wolt_orders.json # All historical orders
│ └── all_wolt_items.json # All historical items
├── utils/ # Utility functions
│ └── currency.js # Currency conversion utilities
├── .env # Environment variables (gitignored)
└── package.json # Project dependencies
-
Clone the repository:
git clone https://github.com/drugoi/data-exports.git cd data-exports -
Install dependencies:
npm install
-
Set up environment variables:
cp .env.example .env
Then edit
.envand add your API tokens/keys.
Extract and analyze your Wolt order history.
-
Get your Wolt token:
- Log in to Wolt in your browser
- Open Developer Tools (F12)
- Go to Network tab
- Find any request to
wolt.com - Copy the
Authorizationheader value (starts with "Bearer")
-
Set up the token:
-
Add your token to
.env:WOLT_TOKEN=your_token_here
-
-
Run the scripts:
# Extract recent orders (last year) node food/wolt-orders.js # Extract all historical orders node food/wolt-orders.js --all # Generate statistics node food/wolt-stats.js # For recent orders node food/wolt-stats.js --all # For all orders
The statistics script includes currency conversion capabilities to handle orders from different countries:
-
Configure base currency (optional):
-
Edit
.envand set your preferred base currency:BASE_CURRENCY=USD # or EUR, GBP, KZT, etc. -
If not set, defaults to KZT
-
All amounts will be converted to this currency
-
-
Get your Exchange Rates API key (optional):
-
Sign up for a free account at https://exchangeratesapi.io/
-
Get your API key from the dashboard
-
Add it to
.env:EXCHANGE_RATES_API_KEY=your_api_key_here
-
-
Features:
- Converts all amounts to your chosen base currency
- Uses historical exchange rates when available
- Caches exchange rates for 24 hours
- Falls back to cached rates if API is unavailable
- Works without API key using cached rates
-
Without API key:
- The script will use cached exchange rates if available
- New currency conversions will be skipped
- You'll see a message when rates are unavailable
- All extracted data is stored in the
data/directory - The data directory is gitignored to prevent accidental commits of personal data
- Data is stored in JSON format for easy processing and analysis
To add support for a new service:
- Create a new directory for the service category if needed
- Add your extraction script
- Add any analysis scripts
- Update this README with instructions
- Never commit API tokens or personal data
- Always use environment variables for sensitive data
- The
data/directory is gitignored by default - Review extracted data before committing any new scripts
- Node.js
- axios - HTTP client
- dayjs - Date manipulation
- dotenv - Environment variables
- chalk - Terminal styling
Feel free to:
- Add support for new services
- Improve existing scripts
- Add new analysis features
- Fix bugs or improve documentation
MIT License - feel free to use and modify as needed.