Skip to content

Commit 437bd6f

Browse files
committed
Fix reels
1 parent b354394 commit 437bd6f

4 files changed

Lines changed: 98 additions & 92 deletions

File tree

Gemfile.lock

Lines changed: 92 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
forki (0.2.37)
4+
forki (0.2.39)
55
apparition
66
capybara
77
oj
@@ -12,24 +12,18 @@ PATH
1212
GEM
1313
remote: https://rubygems.org/
1414
specs:
15-
actionpack (7.0.4.3)
16-
actionview (= 7.0.4.3)
17-
activesupport (= 7.0.4.3)
18-
rack (~> 2.0, >= 2.2.0)
19-
rack-test (>= 0.6.3)
20-
rails-dom-testing (~> 2.0)
21-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
22-
actionview (7.0.4.3)
23-
activesupport (= 7.0.4.3)
24-
builder (~> 3.1)
25-
erubi (~> 1.4)
26-
rails-dom-testing (~> 2.0)
27-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
28-
activesupport (7.0.4.3)
29-
concurrent-ruby (~> 1.0, >= 1.0.2)
15+
activesupport (7.2.2.1)
16+
base64
17+
benchmark (>= 0.3)
18+
bigdecimal
19+
concurrent-ruby (~> 1.0, >= 1.3.1)
20+
connection_pool (>= 2.2.5)
21+
drb
3022
i18n (>= 1.6, < 2)
23+
logger (>= 1.4.2)
3124
minitest (>= 5.1)
32-
tzinfo (~> 2.0)
25+
securerandom (>= 0.3)
26+
tzinfo (~> 2.0, >= 2.0.5)
3327
addressable (2.8.7)
3428
public_suffix (>= 2.0.2, < 7.0)
3529
apparition (0.6.0)
@@ -39,8 +33,7 @@ GEM
3933
backport (1.2.0)
4034
base64 (0.2.0)
4135
benchmark (0.4.0)
42-
bigdecimal (3.1.8)
43-
builder (3.2.4)
36+
bigdecimal (3.1.9)
4437
byebug (11.1.3)
4538
capybara (3.40.0)
4639
addressable
@@ -51,140 +44,151 @@ GEM
5144
rack-test (>= 0.6.3)
5245
regexp_parser (>= 1.5, < 3.0)
5346
xpath (~> 3.2)
54-
concurrent-ruby (1.2.2)
55-
crass (1.0.6)
56-
curb (1.0.5)
57-
diff-lcs (1.5.1)
47+
concurrent-ruby (1.3.5)
48+
connection_pool (2.5.0)
49+
curb (1.0.9)
50+
debug (1.9.2)
51+
irb (~> 1.10)
52+
reline (>= 0.3.8)
53+
diff-lcs (1.6.0)
5854
dotenv (2.7.6)
59-
e2mmap (0.1.0)
60-
erubi (1.12.0)
55+
drb (2.2.1)
6156
ethon (0.16.0)
6257
ffi (>= 1.15.0)
63-
ffi (1.17.0-arm64-darwin)
64-
i18n (1.13.0)
58+
ffi (1.17.1-arm64-darwin)
59+
i18n (1.14.7)
6560
concurrent-ruby (~> 1.0)
61+
io-console (0.7.2)
62+
irb (1.14.1)
63+
rdoc (>= 4.0.0)
64+
reline (>= 0.4.2)
6665
jaro_winkler (1.6.0)
67-
json (2.6.3)
66+
json (2.10.1)
6867
kramdown (2.5.1)
6968
rexml (>= 3.3.9)
7069
kramdown-parser-gfm (1.1.0)
7170
kramdown (~> 2.0)
72-
logger (1.6.2)
73-
loofah (2.21.3)
74-
crass (~> 1.0.2)
75-
nokogiri (>= 1.12.0)
71+
language_server-protocol (3.17.0.4)
72+
lint_roller (1.1.0)
73+
logger (1.6.6)
7674
matrix (0.4.2)
77-
method_source (1.0.0)
7875
mini_mime (1.1.5)
79-
minitest (5.25.1)
80-
nokogiri (1.15.1-arm64-darwin)
76+
minitest (5.25.4)
77+
nokogiri (1.18.3-arm64-darwin)
8178
racc (~> 1.4)
82-
oj (3.16.7)
79+
observer (0.1.2)
80+
oj (3.16.10)
8381
bigdecimal (>= 3.0)
8482
ostruct (>= 0.2)
8583
ostruct (0.6.1)
86-
parallel (1.23.0)
87-
parser (3.2.2.1)
84+
parallel (1.26.3)
85+
parser (3.3.7.1)
8886
ast (~> 2.4.1)
87+
racc
88+
psych (5.2.0)
89+
stringio
8990
public_suffix (6.0.1)
90-
racc (1.6.2)
91+
racc (1.8.1)
9192
rack (2.2.4)
92-
rack-test (2.1.0)
93+
rack-test (2.2.0)
9394
rack (>= 1.3)
94-
rails-dom-testing (2.0.3)
95-
activesupport (>= 4.2.0)
96-
nokogiri (>= 1.6)
97-
rails-html-sanitizer (1.5.0)
98-
loofah (~> 2.19, >= 2.19.1)
99-
railties (7.0.4.3)
100-
actionpack (= 7.0.4.3)
101-
activesupport (= 7.0.4.3)
102-
method_source
103-
rake (>= 12.2)
104-
thor (~> 1.0)
105-
zeitwerk (~> 2.5)
10695
rainbow (3.1.1)
107-
rake (13.0.6)
108-
rbs (2.8.4)
109-
regexp_parser (2.8.0)
110-
reverse_markdown (2.1.1)
96+
rake (13.2.1)
97+
rbs (3.8.1)
98+
logger
99+
rdoc (6.8.1)
100+
psych (>= 4.0.0)
101+
regexp_parser (2.10.0)
102+
reline (0.5.12)
103+
io-console (~> 0.5)
104+
reverse_markdown (3.0.0)
111105
nokogiri
112-
rexml (3.3.9)
113-
rubocop (1.51.0)
106+
rexml (3.4.1)
107+
rubocop (1.72.2)
114108
json (~> 2.3)
109+
language_server-protocol (~> 3.17.0.2)
110+
lint_roller (~> 1.1.0)
115111
parallel (~> 1.10)
116-
parser (>= 3.2.0.0)
112+
parser (>= 3.3.0.2)
117113
rainbow (>= 2.2.2, < 4.0)
118-
regexp_parser (>= 1.8, < 3.0)
119-
rexml (>= 3.2.5, < 4.0)
120-
rubocop-ast (>= 1.28.0, < 2.0)
114+
regexp_parser (>= 2.9.3, < 3.0)
115+
rubocop-ast (>= 1.38.0, < 2.0)
121116
ruby-progressbar (~> 1.7)
122-
unicode-display_width (>= 2.4.0, < 3.0)
123-
rubocop-ast (1.28.1)
124-
parser (>= 3.2.1.0)
125-
rubocop-md (1.2.0)
126-
rubocop (>= 1.0)
127-
rubocop-minitest (0.31.0)
128-
rubocop (>= 1.39, < 2.0)
117+
unicode-display_width (>= 2.4.0, < 4.0)
118+
rubocop-ast (1.38.0)
119+
parser (>= 3.3.1.0)
120+
rubocop-md (2.0.0)
121+
lint_roller (~> 1.1)
122+
rubocop (>= 1.72.1)
123+
rubocop-minitest (0.37.1)
124+
lint_roller (~> 1.1)
125+
rubocop (>= 1.72.1, < 2.0)
126+
rubocop-ast (>= 1.38.0, < 2.0)
129127
rubocop-packaging (0.5.2)
130128
rubocop (>= 1.33, < 2.0)
131-
rubocop-performance (1.18.0)
132-
rubocop (>= 1.7.0, < 2.0)
133-
rubocop-ast (>= 0.4.0)
129+
rubocop-performance (1.24.0)
130+
lint_roller (~> 1.1)
131+
rubocop (>= 1.72.1, < 2.0)
132+
rubocop-ast (>= 1.38.0, < 2.0)
134133
rubocop-rails (2.17.4)
135134
activesupport (>= 4.2.0)
136135
rack (>= 1.1)
137136
rubocop (>= 1.33.0, < 2.0)
138-
rubocop-rails_config (1.13.0)
139-
railties (>= 5.0)
140-
rubocop (>= 1.48.0)
137+
rubocop-rails_config (1.16.0)
138+
rubocop (>= 1.57.0)
141139
rubocop-ast (>= 1.26.0)
142140
rubocop-md
143141
rubocop-minitest (~> 0.22)
144142
rubocop-packaging (~> 0.5)
145143
rubocop-performance (~> 1.11)
146144
rubocop-rails (~> 2.0)
147145
ruby-progressbar (1.13.0)
148-
rubyzip (2.3.2)
149-
selenium-devtools (0.131.0)
146+
rubyzip (2.4.1)
147+
securerandom (0.4.1)
148+
selenium-devtools (0.133.0)
150149
selenium-webdriver (~> 4.2)
151150
selenium-webdriver (4.25.0)
152151
base64 (~> 0.2)
153152
logger (~> 1.4)
154153
rexml (~> 3.2, >= 3.2.5)
155154
rubyzip (>= 1.2.2, < 3.0)
156155
websocket (~> 1.0)
157-
solargraph (0.50.0)
156+
solargraph (0.51.2)
158157
backport (~> 1.2)
159158
benchmark
160159
bundler (~> 2.0)
161160
diff-lcs (~> 1.4)
162-
e2mmap
163-
jaro_winkler (~> 1.5)
161+
jaro_winkler (~> 1.6)
164162
kramdown (~> 2.3)
165163
kramdown-parser-gfm (~> 1.1)
164+
logger (~> 1.6)
165+
observer (~> 0.1)
166+
ostruct (~> 0.6)
166167
parser (~> 3.0)
167-
rbs (~> 2.0)
168-
reverse_markdown (~> 2.0)
168+
rbs (~> 3.0)
169+
reverse_markdown (>= 2.0, < 4)
169170
rubocop (~> 1.38)
170171
thor (~> 1.0)
171172
tilt (~> 2.0)
172173
yard (~> 0.9, >= 0.9.24)
173-
thor (1.2.2)
174-
tilt (2.5.0)
174+
stringio (3.1.2)
175+
thor (1.3.2)
176+
tilt (2.6.0)
175177
typhoeus (1.4.1)
176178
ethon (>= 0.9.0)
177179
tzinfo (2.0.6)
178180
concurrent-ruby (~> 1.0)
179-
unicode-display_width (2.4.2)
181+
unicode-display_width (3.1.4)
182+
unicode-emoji (~> 4.0, >= 4.0.4)
183+
unicode-emoji (4.0.4)
180184
websocket (1.2.11)
181-
websocket-driver (0.7.6)
185+
websocket-driver (0.7.7)
186+
base64
182187
websocket-extensions (>= 0.1.0)
183188
websocket-extensions (0.1.5)
184189
xpath (3.2.0)
185190
nokogiri (~> 1.8)
186191
yard (0.9.37)
187-
zeitwerk (2.6.8)
188192
zorki (0.2.8)
189193
apparition
190194
capybara
@@ -200,6 +204,7 @@ PLATFORMS
200204
DEPENDENCIES
201205
byebug
202206
curb (~> 1.0, >= 1.0.5)
207+
debug
203208
dotenv (~> 2.7.6)
204209
forki!
205210
minitest (~> 5.25)

forki.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Gem::Specification.new do |spec|
4040

4141
spec.add_development_dependency "thor" # For the generator
4242
spec.add_development_dependency "solargraph" # For the language server
43+
spec.add_development_dependency "debug" # For debugging
4344
# For more information and examples about making a new gem, checkout our
4445
# guide at: https://bundler.io/guides/creating_gem.html
4546
end

lib/forki/scrapers/sieves/video_sieves/video_sieve_reel_2.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ def self.sieve(graphql_objects)
4646
!go.dig("feedback", "total_comment_count").nil?
4747
end.first
4848

49-
reels_feedback_renderer = graphql_objects.filter do |go|
50-
go.dig("reels_feedback_renderer")
51-
end.first
49+
# reels_feedback_renderer = graphql_objects.filter do |go|
50+
# go.dig("reels_feedback_renderer")
51+
# end.first
5252

53-
reels_feedback_renderer["reels_feedback_renderer"]["story"]
53+
# reels_feedback_renderer["reels_feedback_renderer"]["story"]
5454
reshare_warning = video_object["short_form_video_context"]["playback_video"].dig("warning_screen_renderer", "cix_screen", "view_model", "__typename") == "OverlayWarningScreenViewModel"
5555

5656
video_preview_image_urls = [video_object["short_form_video_context"]["playback_video"]["preferred_thumbnail"]["image"]["uri"]]

lib/forki/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Forki
4-
VERSION = "0.2.38"
4+
VERSION = "0.2.39"
55
end

0 commit comments

Comments
 (0)