{"id":41220385,"url":"https://github.com/drugoi/data-exports","last_synced_at":"2026-01-23T00:14:16.123Z","repository":{"id":298916265,"uuid":"945452920","full_name":"drugoi/data-exports","owner":"drugoi","description":"Repo of useful utils to fetch data from different data providers","archived":false,"fork":false,"pushed_at":"2025-03-10T15:50:09.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T15:56:53.451Z","etag":null,"topics":["data-export","wolt"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drugoi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-09T13:11:49.000Z","updated_at":"2025-03-10T15:50:13.000Z","dependencies_parsed_at":"2025-06-13T15:56:55.097Z","dependency_job_id":"2e79a5c3-cfc1-4d16-86c1-2dd83b03287e","html_url":"https://github.com/drugoi/data-exports","commit_stats":null,"previous_names":["drugoi/data-exports"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drugoi/data-exports","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drugoi%2Fdata-exports","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drugoi%2Fdata-exports/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drugoi%2Fdata-exports/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drugoi%2Fdata-exports/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drugoi","download_url":"https://codeload.github.com/drugoi/data-exports/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drugoi%2Fdata-exports/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28675610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-export","wolt"],"created_at":"2026-01-23T00:14:15.670Z","updated_at":"2026-01-23T00:14:16.101Z","avatar_url":"https://github.com/drugoi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Data Exports\n\nA collection of scripts for extracting and analyzing personal data from various services and platforms.\n\n## 🎯 Purpose\n\nThis repository contains scripts to help you:\n\n- Extract your personal data from different services\n- Process and analyze the extracted data\n- Generate insights and statistics\n- Store data in a structured format for further analysis\n\n## 📁 Repository Structure\n\n```\ndata-exports/\n├── food/                   # Food delivery services data\n│   ├── wolt-orders.js     # Wolt orders extraction script\n│   └── wolt-stats.js      # Wolt order statistics and analysis\n├── data/                   # Extracted data (gitignored)\n│   └── wolt/              # Wolt data files\n│       ├── wolt_orders.json       # Recent orders (last year)\n│       ├── wolt_items.json        # Recent items (last year)\n│       ├── all_wolt_orders.json   # All historical orders\n│       └── all_wolt_items.json    # All historical items\n├── utils/                  # Utility functions\n│   └── currency.js        # Currency conversion utilities\n├── .env                    # Environment variables (gitignored)\n└── package.json           # Project dependencies\n```\n\n## 🚀 Getting Started\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/drugoi/data-exports.git\n   cd data-exports\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Set up environment variables:\n\n   ```bash\n   cp .env.example .env\n   ```\n\n   Then edit `.env` and add your API tokens/keys.\n\n## 📊 Available Scripts\n\n### Wolt Data Export\n\nExtract and analyze your Wolt order history.\n\n1. Get your Wolt token:\n   - Log in to Wolt in your browser\n   - Open Developer Tools (F12)\n   - Go to Network tab\n   - Find any request to `wolt.com`\n   - Copy the `Authorization` header value (starts with \"Bearer\")\n\n2. Set up the token:\n   - Add your token to `.env`:\n\n     ```\n     WOLT_TOKEN=your_token_here\n     ```\n\n3. Run the scripts:\n\n   ```bash\n   # Extract recent orders (last year)\n   node food/wolt-orders.js\n\n   # Extract all historical orders\n   node food/wolt-orders.js --all\n\n   # Generate statistics\n   node food/wolt-stats.js         # For recent orders\n   node food/wolt-stats.js --all   # For all orders\n   ```\n\n### Currency Conversion\n\nThe statistics script includes currency conversion capabilities to handle orders from different countries:\n\n1. Configure base currency (optional):\n   - Edit `.env` and set your preferred base currency:\n\n     ```\n     BASE_CURRENCY=USD  # or EUR, GBP, KZT, etc.\n     ```\n\n   - If not set, defaults to KZT\n   - All amounts will be converted to this currency\n\n2. Get your Exchange Rates API key (optional):\n   - Sign up for a free account at \u003chttps://exchangeratesapi.io/\u003e\n   - Get your API key from the dashboard\n   - Add it to `.env`:\n\n     ```\n     EXCHANGE_RATES_API_KEY=your_api_key_here\n     ```\n\n3. Features:\n   - Converts all amounts to your chosen base currency\n   - Uses historical exchange rates when available\n   - Caches exchange rates for 24 hours\n   - Falls back to cached rates if API is unavailable\n   - Works without API key using cached rates\n\n4. Without API key:\n   - The script will use cached exchange rates if available\n   - New currency conversions will be skipped\n   - You'll see a message when rates are unavailable\n\n### Data Storage\n\n- All extracted data is stored in the `data/` directory\n- The data directory is gitignored to prevent accidental commits of personal data\n- Data is stored in JSON format for easy processing and analysis\n\n## 📝 Adding New Services\n\nTo add support for a new service:\n\n1. Create a new directory for the service category if needed\n2. Add your extraction script\n3. Add any analysis scripts\n4. Update this README with instructions\n\n## 🔒 Security Notes\n\n- Never commit API tokens or personal data\n- Always use environment variables for sensitive data\n- The `data/` directory is gitignored by default\n- Review extracted data before committing any new scripts\n\n## 📦 Dependencies\n\n- Node.js\n- axios - HTTP client\n- dayjs - Date manipulation\n- dotenv - Environment variables\n- chalk - Terminal styling\n\n## 🤝 Contributing\n\nFeel free to:\n\n- Add support for new services\n- Improve existing scripts\n- Add new analysis features\n- Fix bugs or improve documentation\n\n## 📄 License\n\nMIT License - feel free to use and modify as needed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrugoi%2Fdata-exports","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrugoi%2Fdata-exports","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrugoi%2Fdata-exports/lists"}