{"id":18280007,"url":"https://github.com/lordmike/mbw.script.nemligorders","last_synced_at":"2025-04-09T04:49:22.725Z","repository":{"id":52615124,"uuid":"359597068","full_name":"LordMike/MBW.Script.NemligOrders","owner":"LordMike","description":"User script to download Nemlig.com order histories","archived":false,"fork":false,"pushed_at":"2021-04-23T12:39:23.000Z","size":83,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T17:10:36.646Z","etag":null,"topics":["nemligcom","script"],"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/LordMike.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}},"created_at":"2021-04-19T21:00:44.000Z","updated_at":"2021-04-23T12:39:26.000Z","dependencies_parsed_at":"2022-08-30T09:20:30.021Z","dependency_job_id":null,"html_url":"https://github.com/LordMike/MBW.Script.NemligOrders","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordMike%2FMBW.Script.NemligOrders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordMike%2FMBW.Script.NemligOrders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordMike%2FMBW.Script.NemligOrders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordMike%2FMBW.Script.NemligOrders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LordMike","download_url":"https://codeload.github.com/LordMike/MBW.Script.NemligOrders/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980820,"owners_count":21027803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["nemligcom","script"],"created_at":"2024-11-05T12:32:08.847Z","updated_at":"2025-04-09T04:49:22.706Z","avatar_url":"https://github.com/LordMike.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MBW.Script.NemligOrders\n\nA user script to download all orders from Nemlig.com for further processing.\n\n## \"Installation\"\n\nThe script can be run in any browser, with one of the below methods. The script will provide you a `orders.json` file after it has run. \n\nStatus is reported in the top of the Nemlig.com page, next to the navigation pane.\n\n### Method A: Developer console\n\nRun the following JS in the developer console of a Nemlig.com site.\n\n\u003e fetch('https://raw.githubusercontent.com/LordMike/MBW.Script.NemligOrders/master/src/Nemlig.Com.Downloader.js').then(response =\u003e response.text()).then(script =\u003e eval(script)).then(() =\u003e window.performNemligOrdersDownload())\n\n1. Open Nemlig.com (and log in)\n2. Open the developer console - usually F12\n3. In the Console, paste the above script\n4. You should shortly receive an `orders.json` file with all your orders\n\n### Method B: Bookmarklet\n\nStore the following script as a [bookmarklet](https://en.wikipedia.org/wiki/Bookmarklet)\n\n\u003e javascript:(function()%7Bfetch('https%3A%2F%2Fraw.githubusercontent.com%2FLordMike%2FMBW.Script.NemligOrders%2Fmaster%2Fsrc%2FNemlig.Com.Downloader.js').then(response%20%3D%3E%20response.text()).then(script%20%3D%3E%20eval(script)).then(()%20%3D%3E%20window.performNemligOrdersDownload())%7D)()\n\n## Analysis\n\nThe json file is somewhat self-explanatory. I have not made any effort to simplify it or similar. The format is defiend by Nemlig.com's (unofficial) API.\n\nI have created an excel workbook with some prototype analysis that can be performed. There's a few graphs for cost over time etc.\n\n1. Open the excel workbook from `analysis/`\n2. On the first sheet (configuration), type in the full path to your `orders.json`\n3. Refresh all data sources\n\n# Notes\n\n* This script is not malicious - but it is simple and (imo) written in an easy to understand fashion. So do read it through before running.\n* The script caches orders in your Local HTML storage, so that the next run doesn't need to re-download all orders\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordmike%2Fmbw.script.nemligorders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flordmike%2Fmbw.script.nemligorders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordmike%2Fmbw.script.nemligorders/lists"}