vladkens / twscrape

2024! X / Twitter API scrapper with authorization support. Allows you to scrape search results, User's profiles (followers/following), Tweets (favoriters/retweeters) and more.
https://pypi.org/project/twscrape/
MIT License
793 stars 104 forks source link

Fixing UTC Error #98

Closed yemregundogmus closed 6 months ago

yemregundogmus commented 6 months ago

While parsing the msg_time object in Hotmail accounts opened in UTC-supporting locations, an error was occurring due to the presence of the (UTC) tag. To prevent errors when encountering this and similar tags, I made an addition that proceeds by splitting with parentheses and taking the first element.

Additionally, I added a try-except block to directly print the string on the screen if an error is encountered.

vladkens commented 6 months ago

Good catch, @yemregundogmus. Thank you. Date format in RFC https://www.ietf.org/rfc/rfc9051.html#section-6.3.12-13