There are some apps that provide this.
- https://github.com/zedeus/nitter for twitter
- https://sr.ht/~cadence/bibliogram/ for instagram
- https://github.com/iv-org/invidious for youtube
There are likely others.
The problem with the automation solution you mentioned is that, it'll be just as slow because of the JS it will need to run.