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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fb9866c1d2efb0e686e6c0edd4f268c452cc18ed2f2481b46cbc1b8f2c02445
4
- data.tar.gz: bafdf519a9b2ed1c5fb2f0711ebbf7bf7909e32769290bfe6286a0463056edc7
3
+ metadata.gz: 684dbf1fee604da4f2ab9687223bf3aea6f1ebad0a4f9e16ef7c80dafa645ac0
4
+ data.tar.gz: ab628433652062674b97318864663082cf5c7e623d32ff4ec87494d54df79788
5
5
  SHA512:
6
- metadata.gz: 13f0bce3dbe9ee6d029f79569a27d287c6679643aa0fcdbc3e176a5667d214664eae046e4f2700aab712f4f3b2e96c5535f3d05c6204fe2856c0101b911be5f6
7
- data.tar.gz: 6279ee4bb40c5ad8a6e74be86343027d5b7b122af763274dad96eb3c60d46b30de14acc7f6e57b70b5532888f022b1bcc4db5a8b87d0281471bab519a9faf067
6
+ metadata.gz: cfec123b6b4f1abb61c77c963b4162a9ef87273e3c3bc1dc7a67be34a5af5c38dbc70f4a43d3ae5690a3d5655a54d3081545352eb0768b926d598a575c1c3654
7
+ data.tar.gz: d7cc5599d995dcacc5d38dc60669f67f75d6005f282d9013ceb12bdb463b87ddf78eb9a156bf5e52ad0d3f464f1adea89abc2cc0ae371b4cbcbb981b72124593
@@ -50,7 +50,6 @@ module Zorki
50
50
  "data,xdt_api__v1__media__shortcode__web_info,items"
51
51
  )
52
52
 
53
-
54
53
  graphql_object = graphql_object.first if graphql_object.kind_of?(Array)
55
54
 
56
55
  # For pages that have been marked misinfo the structure is very different than not
@@ -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
- graphql_script = get_content_of_subpage_from_url("https://instagram.com/#{username}/", "graphql/query", "data,user,media_count", post_data_include: "render_surface")
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zorki
4
- VERSION = "0.1.28"
4
+ VERSION = "0.1.29"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zorki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Guess