Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to list domains #29

Open
gamesharkmike opened this issue Jun 23, 2020 · 1 comment
Open

How to list domains #29

gamesharkmike opened this issue Jun 23, 2020 · 1 comment

Comments

@gamesharkmike
Copy link
Contributor

I am trying to write a script that lists all the domains I have registered.

When I run the script:
* I get a text with the raw request and response from under the hood
* When I run a for loop on api.domains_getList() I get an object with all the data about the domain, I just need the domain name.

I would like the output to be something like this

# python3 nc.py
domain1.com
domain2.com
...
lastdomain.com
@gamesharkmike
Copy link
Contributor Author

# List domains
domains = api.domains_getList()
for d in domains:
    print(d)

api.domains_getList()
iter(api.domains_getList())

Is there a way to order the domains by expiry date?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant