{"id":20706455,"url":"https://github.com/pythoncoderunicorn/rtweet-tutorial","last_synced_at":"2026-02-09T23:31:11.170Z","repository":{"id":79731757,"uuid":"402883168","full_name":"PythonCoderUnicorn/rtweet-tutorial","owner":"PythonCoderUnicorn","description":"Beginner intro to the R package rtweet for scraping the Twitter API for tweets","archived":false,"fork":false,"pushed_at":"2022-02-09T18:27:37.000Z","size":48230,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T20:24:16.422Z","etag":null,"topics":["rtweet","tutorial","twitter-api","twitter-bot"],"latest_commit_sha":null,"homepage":"https://pythoncoderunicorn.github.io/rtweet-tutorial/#1","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PythonCoderUnicorn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-03T19:52:22.000Z","updated_at":"2022-04-07T13:39:44.000Z","dependencies_parsed_at":"2023-03-12T09:07:55.756Z","dependency_job_id":null,"html_url":"https://github.com/PythonCoderUnicorn/rtweet-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCoderUnicorn%2Frtweet-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCoderUnicorn%2Frtweet-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCoderUnicorn%2Frtweet-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PythonCoderUnicorn%2Frtweet-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PythonCoderUnicorn","download_url":"https://codeload.github.com/PythonCoderUnicorn/rtweet-tutorial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242974058,"owners_count":20215261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rtweet","tutorial","twitter-api","twitter-bot"],"created_at":"2024-11-17T01:23:15.598Z","updated_at":"2026-02-09T23:31:11.165Z","avatar_url":"https://github.com/PythonCoderUnicorn.png","language":"HTML","readme":"\u003cimg height=\"150\" align=\"right\" src=\"https://user-images.githubusercontent.com/55933131/143092473-835ce619-0b18-438f-b235-aee57209d52f.png\"\u003e\n\n\n# rtweet tutorial\nBeginner intro to the R package rtweet for scraping the Twitter API for tweets\n\n## RLadies Coventry meetup\n- January 26, 2022\n- [the RLadies meetup description](https://www.meetup.com/rladies-coventry/events/282268890/?rv=me1\u0026_xtd=gatlbWFpbF9jbGlja9oAJGNhZTNiMGNkLTk0Y2UtNDM2Yy1iOTJkLWQwNjI3ODI1YTEwOA\u0026_af=event\u0026_af_eid=282268890)\n- the Twitter datasets have been removed on Jan 27, 2022.\n\nThe link to my rtweet guide is [here](https://rtweetguide.netlify.app) which was the `learnr` file documentation/\n\n## Quick rtweet guide\n\nHere are some of the functions for getting started.\n\n### Libraries\n```\nlibrary(rtweet)\nlibrary(tidytext)  # text analysis and cleaning\nlibrary(ggplot2)   # plot your data\n```\n\n### Search Twitter\n\nGive your search functions variables, avoid **rate limit** errors.\nMaximum amount of tweets is 18,000 in a single API request and returns\ntweets \u003c= 9 days old.\n```\nsearched_tweets = search_tweets(\n \"rstats OR RStats\",    # the #hashtag or phrase you want to search\n n = 4000,              # number of tweets to capture\n type = \"recent\",       # recent | mixed | popular\n include_rts = FALSE,   # no retweets\n verbose = TRUE,\n retryonratelimit = FALSE,    # set to true if you want it to run again\n lang = \"en\"            # English language tweets\n)\n\n```\n\n\n### Save your Tweets\n\nSaving your Tweets keeps you safe from **rate limit** errors.\n\n```\nsave_as_csv( \n  searched_tweets,  # the name of your Twitter dataframe\n  file_name = \"new_twitter_df_name\",\n  prepend_ids = TRUE,\n  na = \" \",\n  fileEncoding = \"UTF-8\"\n)\n```\n\n\n### Read in your Twitter dataframe\n\n```\ntwitter_df = read_twitter_csv(file = \"\u003cpath\u003e\", unflatten= FALSE)\n```\n\n\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoncoderunicorn%2Frtweet-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythoncoderunicorn%2Frtweet-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoncoderunicorn%2Frtweet-tutorial/lists"}