It wouldn't because Twitter recently updated HTML classes and ChatGPT cannot know that, since its training stops in 2021. Maybe with a bit kf change. But I've used it successfully in other coding tasks.