seomoz / linkscape-gem Goto Github PK
View Code? Open in Web Editor NEWProvides an interface to SEOmoz's suite of APIs, including the free and site intelligence APIs.
Home Page: http://github.com/seomoz/linkscape-gem
License: MIT License
Provides an interface to SEOmoz's suite of APIs, including the free and site intelligence APIs.
Home Page: http://github.com/seomoz/linkscape-gem
License: MIT License
This is really strange how it's implemented....
When I use:
client.allLinks(uri, :page, :urlcols => [:title, :url, :page_authority, :domain_authority], :linkcols => :all, :filters => :external, :limit => 3, :scope => :page_to_domain)
I still get the message... I went to check the code and it doesn't really make sense to me...
scope = args.length >= 2 ? "#{args.shift}to#{args.shift}" : (args.first ? args.shift : options[:scope])
why would be determining the scope argument be dependent on the number of arguments and this complicated logic? The code thinks that my scope is :page and then throws an exception becaue it's not /^(page|domain)to(page|subdomain|domain)$/
I probably don't understand something obvious... and I can't get it to work... please help
When I run this command:
response = client.allLinks("www.google.com", :domain, :urlcols => [:title, :url, :page_authority, :domain_authority], :linkcols => :all, :filters => :external, :limit => 3, :scope => :page_to_domain)
I get the following error:
InvalidArgument: allLinks scope must be valid ([page, domain] to [page, subdomain, domain])
from /home/marty/.rvm/gems/ruby-1.9.2-p136/gems/linkscape-0.3.0/lib/linkscape/client.rb:87:in `allLinks'
As far as I can tell, the scope is entered correctly. I've also tried every possible combination listed in the documentation. I cant figure out why this is returning an error. Possible bug?
https://github.com/topfunky/ruby-hmac
ruby-hmac looks to be no longer maintained and I'm getting an error on OS X Mountain Lion:
RuntimeError: The underlying hash algorithm has not yet been initialized.
from /Users/ehochber/.rvm/gems/ruby-1.9.3-p286@xenuranker/gems/ruby-hmac-0.4.0/lib/hmac.rb:29:in `check_status'
from /Users/ehochber/.rvm/gems/ruby-1.9.3-p286@xenuranker/gems/ruby-hmac-0.4.0/lib/hmac.rb:60:in `update'
from /Users/ehochber/.rvm/gems/ruby-1.9.3-p286@xenuranker/gems/ruby-hmac-0.4.0/lib/hmac.rb:91:in `digest'
from /Users/ehochber/.rvm/gems/ruby-1.9.3-p286@xenuranker/gems/linkscape-0.3.2/lib/linkscape/signer.rb:8:in `signParams'
from /Users/ehochber/.rvm/gems/ruby-1.9.3-p286@xenuranker/gems/linkscape-0.3.2/lib/linkscape/request.rb:61:in `signRequest'
from /Users/ehochber/.rvm/gems/ruby-1.9.3-p286@xenuranker/gems/linkscape-0.3.2/lib/linkscape/request.rb:37:in `initialize'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.