Class: IdsPlease::Grabbers::Instagram
- Defined in:
- lib/ids_please/grabbers/instagram.rb
Instance Attribute Summary
Attributes inherited from Base
#avatar, #counts, #data, #display_name, #link, #network_id, #page_source, #username
Instance Method Summary collapse
Methods inherited from Base
#errors, #find_by_regex, #initialize, #inspect, interact, #record_error, #to_h, #to_s
Constructor Details
This class inherits a constructor from IdsPlease::Grabbers::Base
Instance Method Details
#grab_link ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/ids_please/grabbers/instagram.rb', line 7 def grab_link @network_id = find_network_id @avatar = find_avatar @display_name = find_display_name @username = find_username @counts = { media: find_media, followed_by: find_followed_by, follows: find_follows }.delete_if { |_k, v| v.nil? } @data = { bio: find_bio, website: find_website }.delete_if { |_k, v| v.nil? } self rescue => e record_error __method__, e. return self end |