{"id":900,"date":"2020-05-20T13:04:37","date_gmt":"2020-05-20T12:04:37","guid":{"rendered":"http:\/\/wobable.com\/?p=900"},"modified":"2022-03-07T20:48:56","modified_gmt":"2022-03-07T20:48:56","slug":"twitter-export-cleaning-and-data-conversion","status":"publish","type":"post","link":"https:\/\/wobable.com\/?p=900","title":{"rendered":"Twitter export cleaning and data conversion"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This is another note to self, on how to clean performance data extracted from Twitter Analytics.<br><br><strong>Tweet ID<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Due to the length of Twitter ID&#8217;s Excel turns the ID into scientific notation and so the ID is not exactly right.<br>Luckily, that can be extracted from the Permanent Link using the following excel formula:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(With the permalink in C3)\n\n=MID(C3,FIND(\"status\/\",C3)+7,100)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Twitter account<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If dealing with data from multiple accounts, you can extract the twitter username as well.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(with permalink in C3, and Twitter ID in A3).\n\n=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(C3,\"\/status\/\",\"\"),\"https:\/\/twitter.com\/\",\"\"),A3,\"\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Date and Time<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Twitter formats data and time as  2020-03-31   20:06 +0000 &#8211; which is not stored as a number, or a date. It is a text box.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Date can be extracted using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(with above date text in cell G3)\n=DATE(LEFT(G3,4),MID(G3,6,2),MID(G3,9,2))<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Time can be extracted using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(with above date text in cell G3)\n=TIME(MID(G3,12,2),MID(G3,15,2),0)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is another note to self, on how to clean performance data extracted from Twitter Analytics. Tweet ID Due to the length of Twitter ID&#8217;s Excel turns the ID into scientific notation and so the ID is not exactly right.Luckily, that can be extracted from the Permanent Link using the following excel formula: Twitter account &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/wobable.com\/?p=900\"> <span class=\"screen-reader-text\">Twitter export cleaning and data conversion<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":958,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-900","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p2c0fT-ew","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/wobable.com\/wp-content\/uploads\/2020\/05\/Cleaning-a-bird.png","_links":{"self":[{"href":"https:\/\/wobable.com\/index.php?rest_route=\/wp\/v2\/posts\/900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wobable.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wobable.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wobable.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wobable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=900"}],"version-history":[{"count":1,"href":"https:\/\/wobable.com\/index.php?rest_route=\/wp\/v2\/posts\/900\/revisions"}],"predecessor-version":[{"id":901,"href":"https:\/\/wobable.com\/index.php?rest_route=\/wp\/v2\/posts\/900\/revisions\/901"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wobable.com\/index.php?rest_route=\/wp\/v2\/media\/958"}],"wp:attachment":[{"href":"https:\/\/wobable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wobable.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wobable.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}