forki 0.2.13 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/forki/scrapers/post_scraper.rb +4 -1
- data/lib/forki/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8076712122eaa3930f4810048520db6fb17452584a7347a8cb2d4d53d275984a
|
4
|
+
data.tar.gz: 74b06da01c47fd9d4dd9532a79a7aaf03e2e2f760c9bf91cb015bfd1a82b5789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b85a149035c8aa693c2d758dbf246725eb64ce6159c86ec67f29c9ba11ec99de98b987fdd71c9536fa1f097ddfff9fa3fe172dd4d6e7640b44439316f0e153d4
|
7
|
+
data.tar.gz: 60f2298e805c9ea0517983a2f17dfe388e62f41bff9525d2b5161ab9306f729eb7d8fb2d1f35d1c963dfd2db3bdaa93f318e546f8771780a61dd03d0c059b432
|
@@ -288,6 +288,9 @@ module Forki
|
|
288
288
|
num_comments = feedback_object["comments_count_summary_renderer"]["feedback"]["total_comment_count"]
|
289
289
|
end
|
290
290
|
|
291
|
+
text = sidepane_object["tahoe_sidepane_renderer"]["video"]["creation_story"]["comet_sections"]["message"].dig(["story", "message", "text"])
|
292
|
+
text = "" if text.nil?
|
293
|
+
|
291
294
|
post_details = {
|
292
295
|
id: video_object["id"],
|
293
296
|
num_comments: num_comments,
|
@@ -296,7 +299,7 @@ module Forki
|
|
296
299
|
reshare_warning: feedback_object["should_show_reshare_warning"],
|
297
300
|
video_preview_image_url: video_object["video"]["preferred_thumbnail"]["image"]["uri"],
|
298
301
|
video_url: video_object["video"]["playable_url_quality_hd"] || video_object["video"]["browser_native_hd_url"] || video_object["video"]["browser_native_sd_url"] || video_object["video"]["playable_url"],
|
299
|
-
text:
|
302
|
+
text: text,
|
300
303
|
created_at: video_object["video"]["publish_time"],
|
301
304
|
profile_link: sidepane_object["tahoe_sidepane_renderer"]["video"]["creation_story"]["comet_sections"]["actor_photo"]["story"]["actors"][0]["url"],
|
302
305
|
has_video: true
|
data/lib/forki/version.rb
CHANGED