module RSocial::Shazam::Client::Users
Public Instance Methods
user(id)
click to toggle source
# File lib/rsocial/shazam/client/users.rb, line 5 def user(id) run( "https://www.shazam.com/artist/#{id}", user_injections ).merge(:id => id) end
users_instance(id)
click to toggle source
# File lib/rsocial/shazam/client/users.rb, line 12 def users_instance(id) wd = Driver.instance.send( "chrome" ) wd.get "https://www.shazam.com/artist/#{id}" wd end
Private Instance Methods
user_injections()
click to toggle source
# File lib/rsocial/shazam/client/users.rb, line 20 def user_injections { :follower_count => "return document.getElementsByClassName('js-followers')[0].textContent" } end