parse_stream {rtoot} | R Documentation |
Parser of Mastodon stream
Description
Converts Mastodon stream data (JSON file) into a parsed tibble.
Usage
parse_stream(path)
Arguments
path |
Character, name of JSON file with data collected by any stream_timeline function. |
Details
The stream sometimes returns invalid lines of json. These are automatically skipped. Parsing can be slow if your json contains a large amount of statuses
Value
a tibble of statuses
See Also
stream_timeline_public()
, stream_timeline_hashtag()
,stream_timeline_list()
Examples
## Not run:
stream_timeline_public(1, file_name = "stream.json")
parse_stream("stream.json")
## End(Not run)
[Package rtoot version 0.3.4 Index]