Last active
November 19, 2025 12:49
-
-
Save IlyaZha/c7039a951af10bd80caf78d77d7c4338 to your computer and use it in GitHub Desktop.
Import from koyfin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. let tickers = []; | |
| 2. tickers = tickers.concat(Array.from(document.querySelectorAll('a')) | |
| .map(cell => { | |
| const link = cell.querySelector('div'); | |
| if (!link) console.log(cell); | |
| return link ? link.textContent.replace(/^•/, '').trim() : null; | |
| }) | |
| .filter(Boolean)); | |
| console.log(JSON.stringify([...new Set(tickers)])); | |
| 3. Page down |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prompt to create csv file:
CSV file
Include 4 columns:
symbol, quantity, cost, date (MM/DD/YYYY, YYYY-MM-DD)
I need a csv of this kind, fill Symbol, data - zeros, and if the date is today. A list of symbols: