parse_stream function

Parser of Mastodon stream

Parser of Mastodon stream

Converts Mastodon stream data (JSON file) into a parsed tibble.

parse_stream(path)

Arguments

  • path: Character, name of JSON file with data collected by any stream_timeline function.

Returns

a tibble of statuses

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

Examples

## Not run: stream_timeline_public(1, file_name = "stream.json") parse_stream("stream.json") ## End(Not run)

See Also

stream_timeline_public(), stream_timeline_hashtag(),stream_timeline_list()

  • Maintainer: David Schoch
  • License: MIT + file LICENSE
  • Last published: 2024-10-30