vulnersCom / api

Vulners Python API wrapper
GNU General Public License v3.0
356 stars 60 forks source link

VulnersVscanner not in module? #26

Closed u-ashish closed 5 months ago

u-ashish commented 3 years ago

I was reading the documentation here: https://docs.vulners.com/vscanner/

Which mentions installing this library and then running

import vulners

vulners_api = vulners.VulnersVscanner(api_key="YOUR_API_KEY_HERE")

But it keeps saying VulnersVscanner isn't in the module.

I also looked at an older issue here (https://github.com/vulnersCom/api/issues/25) and noticed someone used:

vulners_api = vulners.VScannerApi(api_key=api_key)

But that doesn't work for me either; I only see vulners.Vulners(...) being accessible in this package (and that's all I see in the source code, too).

Could someone point me in the right direction about which package to install to access the vscanner module?

I installed vulners via pip env install vulners and it is on version 1.5.11

aachurin commented 3 years ago

It’s new api and it is available only from the branch v2.0. You can install it directly from GitHub

Вс, 18 июля 2021 г. в 19:53, Ashish Uppala @.***>:

I was reading the documentation here: https://docs.vulners.com/vscanner/

Which mentions installing this library and then running

import vulners

vulners_api = vulners.VulnersVscanner(api_key="YOUR_API_KEY_HERE")

But it keeps saying VulnersVscanner isn't in the module.

I also looked at an older issue here (#25 https://github.com/vulnersCom/api/issues/25) and noticed someone used:

vulners_api = vulners.VScannerApi(api_key=api_key)

But that doesn't work for me either; I only see vulners.Vulners(...) being accessible in this package (and that's all I see in the source code, too).

Could someone point me in the right direction about which package to install to access the vscanner module?

I installed vulners via pip env install vulners and it is on version 1.5.11

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vulnersCom/api/issues/26, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFGDCPKVORYGTHW54CZ7ALTYMBHVANCNFSM5ASJYBHA .

--

С уважением,

Чурин Андрей

Руководитель отдела технического анализа

Positive Technologies R&D

Tel: +7 (495) 744-0144 Fax: +7 (495) 744-0187

E-mail: @. @.?subject=>

www.ptsecurity.ru www.maxpatrol.ru www.securitylab.ru

u-ashish commented 3 years ago

Thanks @aachurin -- do you know when it's slated for an official release?

aachurin commented 3 years ago

No, it’s beta. Release will be soon ) Вс, 18 июля 2021 г. в 22:54, Ashish Uppala @.***>:

Thanks @aachurin https://github.com/aachurin -- do you know when it's slated for an official release?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/vulnersCom/api/issues/26#issuecomment-882108773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFGDCJEZJJMSKG5A4BCEZ3TYMWNRANCNFSM5ASJYBHA .

--

С уважением,

Чурин Андрей

Руководитель отдела технического анализа

Positive Technologies R&D

Tel: +7 (495) 744-0144 Fax: +7 (495) 744-0187

E-mail: @. @.?subject=>

www.ptsecurity.ru www.maxpatrol.ru www.securitylab.ru

u-ashish commented 3 years ago

Thanks -- I have a few other questions but let me know if it makes more sense to put them in a separate issue / ask elsewhere:

aachurin commented 3 years ago

Yes, you can do that. Create the task with a cron schedule in the past (last month, for example) and use start_task method. After the task starts (it doesn't start instantly), you can delete the task.

Пн, 19 июля 2021 г. в 03:12, Ashish Uppala @.***>:

Thanks -- I have a few other questions but let me know if it makes more sense to put them in a separate issue / ask elsewhere:

  • Is it possible to create a task for manual execution without being on a cron schedule? i.e. right now I can create a project, create a task with a cron schedule string, and then execute it manually. I noticed that I have to make sure it is in an enabled state. Can I make a task without a schedule, or with a schedule but in a disabled state (so the cron doesn't trigger it) and then trigger it myself only when I want? I have been circumventing this by setting the schedule to run in the following month, then triggering immediately and then deleting after it finishes.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/vulnersCom/api/issues/26#issuecomment-882139591, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFGDCMBNNJPMCK4YJFWK7TTYNUVNANCNFSM5ASJYBHA .

--

С уважением,

Чурин Андрей

Руководитель отдела технического анализа

Positive Technologies R&D

Tel: +7 (495) 744-0144 Fax: +7 (495) 744-0187

E-mail: @. @.?subject=>

www.ptsecurity.ru www.maxpatrol.ru www.securitylab.ru