voson.tcn 0.3.3
Bug Fixes
- Fixed an error produced by arranging users by tweet count in
tcn_threads
.
voson.tcn 0.3.2
Minor Changes
- Updated standard package documentation, added citation and README.Rmd.
voson.tcn 0.3.1
Major Changes
- Added the
tcn_counts
function for retrieving tweet counts over time for conversation ids. This uses the API v2 tweets/counts
endpoint and does not contribute to the monthly tweet cap. It could be used prior to collecting conversation threads to identify conversations to target or conversations to add to a skip list.
Minor Changes
- Full-archive endpoint searches with the optional API v2
max_results
querystring parameter have started to return response status code 400 for values over 100.
- The
max_results
parameter for function tcn_threads
has been changed from the maximum total results, and now refers to and allows the API parameter of the same name above to be set. The default value has been set to 100. If left at default academic projects using the full-archive search endpoint will only collect 30,000 tweets per 15 minute rate-limit.
- Previous
max_results
parameter for the function tcn_threads
has been renamed to max_total
.
- Added
retry_on_limit
parameter to tcn_threads
to allow waiting for API rate-limit to reset before continuing, rather than exiting upon reaching the limit.
- Updated standard package documentation.
voson.tcn 0.2.4
Major Changes
- Added
tcn_tweets
function. This function accepts tweet URL’s or ID’s and collects specific tweet data using the API v2 tweets
endpoint. Currently supports only bearer access tokens.
Minor Changes
- Changed
httr
request user-agent string via header field rather than options.
- Added
converstion_id
as node and edge attribute to networks.
- Thread collection now returns a list of four dataframes,
tweets
, users
, errors
and meta
. The errors
dataframe contains partial errors such as those caused when trying to retrieve tweets that are not publicly available. The meta
dataframe contains search results metadata such as tweet id range, number of results and pagination token.
- Added unnesting of
public_metrics
during the JSON to dataframe process.
- Added unnesting of referenced tweets to network creation.
- Outputs a warning if rate-limit reached.
- Renamed
end-point
parameter to endpoint
to be consistent with twitter documentation.
- Added
max_results
parameter to coarsely limit how many tweets are collected in a tcn_threads
operation. This is to assist with managing the monthly tweet cap placed on projects using the API search endpoints.
- Expanded tweet and user fields collected.
Bug Fixes
- Fixed an issue with partial errors preventing
get_tweets
from returning requested tweets.
voson.tcn 0.1.10
Bug Fixes
- Fixed
object 'df_convo' not found
message when endpoint related error occurs.
Minor Changes
- Added
start_time
and end_time
parameters for academic track historical search endpoint (end_point = "all"
). These are UTC datetime strings in ISO 8601 format. If unused the API uses a default UTC start time of 30 days ago and a default end time of the current time minus 30 seconds.
voson.tcn 0.1.8
Bug Fixes
- Removed extraneous self-loop from conversation starter node in activity networks.
- Added a warning for threads that return no tweets and fixed
anti_join
on tweet_id
error.
Minor Changes
- Added public metrics, referenced tweet objects and user profile fields to tweet expansion and object fields collected.
- The
tcn_threads
function now produces a named list of dataframes: tweets
and users
for tweet data and user metadata.
- Added
bearer
parameter to the tcn_token
function to assign a bearer token directly rather than retrieving it with app keys.
voson.tcn 0.1.3
Initial Version
- Retrieve a Twitter bearer token using app consumer keys with the
tcn_token
function.
- Option to collect on multiple conversations by passing multiple tweet URLs or IDs in a list to
tcn_threads
using the tweet_ids
parameter.
- Option to use historical rather than a recent search API endpoint by using
tcn_threads
with the end_point = "all"
parameter.
- Generate either an
actor
or activity
network using the tcn_network
function with the type = "activity"
parameter.
- Created a package, package documentation and pkgdown site.