Skip to content

Instantly share code, notes, and snippets.

View ulfandersson's full-sized avatar

Ulf Andersson ulfandersson

View GitHub Profile
### Keybase proof
I hereby claim:
* I am ulfandersson on github.
* I am ulf_andersson (https://keybase.io/ulf_andersson) on keybase.
* I have a public key ASCDocN6nUCHv564_b8UpkQs_PXGwG895QojhQlwNkI6EAo
To claim this, I am signing this object:
/**
* Ladda ner aktieinnehav från nordnet. Copy-paste till terminal och kör!
*/
// (Use var instead of const to be able to copy-paste to console multiple times)
// The data is not a table, but row-based flexbox-divs.
var data = Array.from(document.querySelector("#pageAccountStocksTable").children,
rowDiv => rowDiv.innerText
// Remove Köp Sälj buttons
.replace("KöpSälj\n", "")
@ulfandersson
ulfandersson / download_excel_from_borsdata.sh
Created June 28, 2018 19:54
Download Excel data for a company from borsdata.se. NOTE! REQUIRES BÖRSDATA SUBSCRIPTION.
#!/bin/bash
#
# Copyright 2018 Ulf Andersson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#