Since Twitter is doing bullshit shenanigans with it's content and who can view it or not.. I recommend replacing https://twitter.com/ with https://nitter.net/. It's the same content just bypasses Twitter.
You can also bypass Twitter's restrictions by using TOR but not everyone has TOR or the ability to use TOR (ie. Mobile users). So, I recommend using the nitter.net URL instead. Obviously this is not mandatory just a friendly recommendation.
Carry on.
Nitter is far too inconsistent and half the links i try to convert don't work. Vx Twitter is still the better option for embeds.