Coder Social home page Coder Social logo

semrush's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

semrush's Issues

remove dependency on pony gem

The pony gem dependency seems out of place to me and caused problems with email_spec gem. If email_spec sees you have pony, it assumes you're not using ActionMailer. So for us, this meant that I had to define load order manually to make sure pony loaded after email_spec.

Three alternatives:

  • Remove pony and email notifications. Raise error and assume the app using the gem will log or rescue.
  • Move pony and email notifications into a separate gem (e.g. semrush-pony)
  • Make notifications configurable. Where app using gem defines Proc to be called in event of a notification.

If one of these options was acceptable/preferred, I could do a PR when I have time.

Support for Keyword Overview (All Databases) aka phrase_all ?

Can't seem to figure out how I would run a keyword overview against all regional databases. In the API, it's the phrase_all call.

I tried passing in both an array and a comma delimited string of multiple regional databases to the db property, but it didn't work.

In other words, if I wanted to get search volumes for all regional databases, is there a way to get them all in a single call? Or do I have to make a call for all the individual databases ("us", "uk", "ca", "ru", etc.) and add them all up? Seems like that would eat up my credits fairly quickly.

Thanks!

Querying keyword containing & fails

Hi,

trying to query the keyword 'mode & pries' the SEMrush API returns:

{ "error": "ERROR 122 :: WRONG FORMAT OR EMPTY KEY", "exec_time": 0.000661 }

The gem produces this request:

'http://de.api.semrush.com/?action=report&type=phrase_this&phrase=mode%20&%20pries&key=XXXXXXXXXXXXXXXX&export=api

but it should escape the '&' into '%26', resulting in this request:

'http://de.api.semrush.com/?action=report&type=phrase_this&phrase=mode%20%26%20pries&key=XXXXXXXXXXXXXXXX&export=api

nil error

Hi,

in this line:

http://fuch.si/e6

csv.shift is sometimes nil, resulting in an exception. This seems to happen randomly. Do you have an idea what may be causing this? Maybe an empty response?

Semrush::Report.remaining_quota never updates on api_key changes

If I do this :
Semrush.api_key = 'api key1'
puts Semrush::Report.remaining_quota
Semrush.api_key = 'api key 2'
puts Semrush::Report.remaining_quota

The last call use the same @remaining_quota_url with wrong api key.
If this behaviour is not wanted, I would suggest that @remaining_quota_url is niled on api_key updates

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.