Files
YouTube.js/lib/parser/contents
LuanRT 07b83a823c feat: finish youtube search parser
The library is now able to parser everything from a search.
2022-06-06 17:19:24 -03:00
..
2022-06-06 17:19:24 -03:00

Parser

Sanitizes and standardizes InnerTube responses while maintaining the integrity of the data. Also drastically improves how API calls are made and handled. This clever approach was initially implemented and suggested by Wykerd (See #44).

Note: This will eventually replace the old parser.

Methods

parse(object: data)

Responsible for parsing especially the contents property of the response object.

Arguments
  • data - the contents property.

parseResponse(object: data)

Unlike parse, this can be used to parse the entire response object.

Arguments
  • data - raw response from InnerTube.