The script was run after hours, that's why 'buy' and 'sell' columns are empty.
$ python avanza-fetcher.py urls.json
You can change the default output and pipe the result to a file
$ python avanza-fetcher.py urls.json > output.txt
Using package requests, install using PIP
$ pip install requests
The code have been tested on:
- Windows 10 machine running Python 3.9.0
If the code gives unexpected or no result, it's probably because the website has altered their HTML.
Rewriting the regex expressions should fix that.