{"id":1859,"date":"2020-10-05T02:28:03","date_gmt":"2020-10-05T02:28:03","guid":{"rendered":"http:\/\/optimumsportsperformance.com\/blog\/?p=1859"},"modified":"2020-10-05T12:46:11","modified_gmt":"2020-10-05T12:46:11","slug":"tidyx-30-twitter-scraping-sentiment-analysis","status":"publish","type":"post","link":"https:\/\/optimumsportsperformance.com\/blog\/tidyx-30-twitter-scraping-sentiment-analysis\/","title":{"rendered":"TidyX 30: Twitter Scraping &#038; Sentiment Analysis"},"content":{"rendered":"<p>This week, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/ellis_hughes\">Ellis Hughes<\/a><\/span><\/strong> and I show how to scrape tweets using the {<span style=\"color: #0000ff;\"><strong>rtweet<\/strong><\/span>} package.<\/p>\n<p>First, we scrape tweets containing the hashtag, Debate2020. We then walk through how to do a sentiment analysis to evaluate positive and negative sentiment based on the words used by those making the tweets and show how this sentiment varies between countries.<\/p>\n<p>To watch our screen cast, <a href=\"https:\/\/www.youtube.com\/watch?v=5Zp7NDFX3O4&amp;feature=youtu.be\"><strong><span style=\"color: #0000ff;\">CLICK HERE<\/span><\/strong><\/a>.<\/p>\n<p>To access our code, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/thebioengineer\/TidyX\/tree\/master\/TidyTuesday_Explained\/030-Sentiment\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week, Ellis Hughes and I show how to scrape tweets using the {rtweet} package. First, we scrape tweets containing the hashtag, Debate2020. We then walk through how to do a sentiment analysis to evaluate positive and negative sentiment based on the words used by those making the tweets and show how this sentiment varies [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"class_list":["post-1859","post","type-post","status-publish","format-standard","hentry","category-tidyx-screen-cast"],"_links":{"self":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/comments?post=1859"}],"version-history":[{"count":3,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1859\/revisions"}],"predecessor-version":[{"id":1862,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1859\/revisions\/1862"}],"wp:attachment":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/media?parent=1859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/categories?post=1859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/tags?post=1859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}