GithubHelp home page GithubHelp logo

rfapi-python's People

Contributors

cestrada-rf avatar eriste avatar ess-recordedfuture avatar johannesh-recordedfuture avatar micheledkrantz avatar rkokkelk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rfapi-python's Issues

Lookups does not take multiple fields into account

Currently RFAPI does not work as expected for lookups of hash/IP/domains because it does not take multiple fields into account. Given the PoC below, you can see that only the first field analystNotes is returned and the rest is just discarded.

from rfapi import ConnectApiClient

fields = [
    'analystNotes',
    'intelCard',
    'risk',
    'sightings',
    'timestamps'
]

rf = ConnectApiClient(auth='API_KEY')
res = rf.lookup_hash('66643f3f2785f7e0de7d5bc8402495a1', fields=fields, metadata=False)
puts(res)
{'data': {'analystNotes': []}}

Probably because fields is not joined in list as in

if 'fields' in params and isinstance(params['fields'], list):
params['fields'] = ",".join(params['fields'])

p.s. thanks for the good work. However, a few examples on how to lookup hash via the RF-API would help in implementing the module. The examples in the ConnectAPI web interface shows Python3 examples but not once with the use of the module. I had to look multiple times in the source code to determine which parameters are allowed. But keep up the good work.

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.