zorki 0.1.28 → 0.1.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zorki/scrapers/post_scraper.rb +0 -1
- data/lib/zorki/scrapers/scraper.rb +0 -2
- data/lib/zorki/scrapers/user_scraper.rb +3 -1
- data/lib/zorki/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: 684dbf1fee604da4f2ab9687223bf3aea6f1ebad0a4f9e16ef7c80dafa645ac0
|
4
|
+
data.tar.gz: ab628433652062674b97318864663082cf5c7e623d32ff4ec87494d54df79788
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfec123b6b4f1abb61c77c963b4162a9ef87273e3c3bc1dc7a67be34a5af5c38dbc70f4a43d3ae5690a3d5655a54d3081545352eb0768b926d598a575c1c3654
|
7
|
+
data.tar.gz: d7cc5599d995dcacc5d38dc60669f67f75d6005f282d9013ceb12bdb463b87ddf78eb9a156bf5e52ad0d3f464f1adea89abc2cc0ae371b4cbcbb981b72124593
|
@@ -72,8 +72,6 @@ module Zorki
|
|
72
72
|
|
73
73
|
page.driver.browser.intercept do |request, &continue|
|
74
74
|
# This passes the request forward unmodified, since we only care about the response
|
75
|
-
#
|
76
|
-
# responses.first.post_data.include?("render_surface%22%3A%22PROFILE")
|
77
75
|
continue.call(request) && next unless request.url.include?(subpage_search)
|
78
76
|
continue.call(request) && next unless !post_data_include.nil? && request.post_data&.include?(post_data_include)
|
79
77
|
|
@@ -24,7 +24,9 @@ module Zorki
|
|
24
24
|
begin
|
25
25
|
login
|
26
26
|
|
27
|
-
|
27
|
+
# This is searching for a specific request, the reason it's weird is because it's uri encoded
|
28
|
+
# graphql_script = get_content_of_subpage_from_url("https://instagram.com/#{username}/", "graphql/query", "data,user,media_count", post_data_include: "render_surface%22%3A%22PROFILE")
|
29
|
+
graphql_script = get_content_of_subpage_from_url("https://instagram.com/#{username}/", "graphql/query", nil, post_data_include: "render_surface%22%3A%22PROFILE")
|
28
30
|
graphql_script = graphql_script.first if graphql_script.class == Array
|
29
31
|
|
30
32
|
if graphql_script.nil?
|
data/lib/zorki/version.rb
CHANGED