gawen / virustotal

💊 VirusTotal Public API 2.0 client for Python 2.x
https://www.virustotal.com/
155 stars 61 forks source link

Error setting my API key #10

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi,

I see the error below when executing the second command to set my API key. Do you know how I can get past this error please?

Python 2.7.12 |Anaconda 4.2.0 (64-bit)| (default, Jun 29 2016, 11:07:13) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import virustotal
>>> v = virustotal.VirusTotal(MY_API_KEY)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'MY_API_KEY' is not defined
>>>

Thanks for your help

Paradoxis commented 7 years ago

@raveydaveygravy You haven't defined a variable called MY_API_KEY ( MY_API_KEY="" ), it would be wise to learn the basics before you start using public libraries

ghost commented 7 years ago

Don't worry about it, I found something else to use ;)

On Mar 10, 2017, at 7:43 AM, Luke Paris notifications@github.com wrote:

@raveydaveygravy You haven't defined a variable called MY_API_KEY ( MY_API_KEY="" ), it would be wise to learn the basics before you start using public libraries

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ghost commented 7 years ago

Do you think your reply constitutes the sharing of wisdom?

On Mar 10, 2017, at 7:43 AM, Luke Paris notifications@github.com wrote:

@raveydaveygravy You haven't defined a variable called MY_API_KEY ( MY_API_KEY="" ), it would be wise to learn the basics before you start using public libraries

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Paradoxis commented 7 years ago

@raveydaveygravy just trying to help resolve the issue, you seemed to not get past the undefined variable part so I offered a few words to help you get past it :)

ghost commented 7 years ago

Cool. Thanks for getting back to me

On Mar 10, 2017, at 1:52 PM, Luke Paris notifications@github.com wrote:

@raveydaveygravy just trying to help resolve the issue, you seemed to not get past the undefined variable part so I offered a few words to help you get past it :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.