Method: Funky::HTML::Parser#parse
- Defined in:
- lib/funky/html/parser.rb
#parse(html:, video_id:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 8 9 10 11 12 |
# File 'lib/funky/html/parser.rb', line 5 def parse(html:, video_id:) { view_count: extract_views_from(html), share_count: extract_shares_from(html, video_id), like_count: extract_likes_from(html), comment_count: extract_comments_from(html, video_id) } end |