Git Product home page Git Product logo

Comments (3)

liuch avatar liuch commented on May 28, 2024

This is a good idea. But there are probably many control panels with their own API, and I do not use any of them. It is quite difficult to write and debug usage unknown APIs. Maybe you had in mind the import of domains from some standard format, like CSV?

By the way: Do you know that domains can be automatically added to the database by using allowed_domains option in the config file?

from dmarc-srg.

 avatar commented on May 28, 2024

This is a good idea. But there are probably many control panels with their own API, and I do not use any of them. It is quite difficult to write and debug usage unknown APIs. Maybe you had in mind the import of domains from some standard format, like CSV?

By the way: Do you know that domains can be automatically added to the database by using allowed_domains option in the config file?

All APIs have 1 thing in common: They can be queried viy curl. So, if you add a form to ask for:

  • Full API link to query the domains
  • API credentials

It should be enough for the system to query the control panels.

  • No, I didn't know I could add automatically domains with that option. ;-)

from dmarc-srg.

liuch avatar liuch commented on May 28, 2024

I see at least two problems:

  1. API can use a temporary token that is passed after authentication.
  2. The complexity of processing the result. You need to know the response format and its structure for each control panel to extract the domain name.

It seems to me more reasonable to do this: your script retrieves a list of domains through the API and passes it as CSV to my script through a temporary file or pipe to import your domains to the database.

from dmarc-srg.

Related Issues (20)

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.