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

Add "-j, --json" option to support output in json format #313

Merged
merged 7 commits into from
Nov 6, 2023
Merged

Add "-j, --json" option to support output in json format #313

merged 7 commits into from
Nov 6, 2023

Conversation

vimagick
Copy link
Contributor

@vimagick vimagick commented Nov 4, 2023

Hi
Maybe this is helpful.

$ tldextract -j www.bbc.co.uk | jq .
{
  "subdomain": "www",
  "domain": "bbc",
  "suffix": "co.uk",
  "fqdn": "www.bbc.co.uk",
  "registered_domain": "bbc.co.uk"
}

@john-kurkowski
Copy link
Owner

I like this idea! Got tests?

@john-kurkowski
Copy link
Owner

Thanks!

@john-kurkowski john-kurkowski merged commit f0320ae into john-kurkowski:master Nov 6, 2023
1 check passed
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Nov 7, 2023
https://build.opensuse.org/request/show/1123695
by user mia + anag+factory
- Update to 5.1.0:
Features:
  * Allow passing in `requests.Session`
    #gh/john-kurkowski/tldextract#311
  * Add "-j, --json" option to support output in json format
    #gh/john-kurkowski/tldextract#313
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

Successfully merging this pull request may close these issues.

2 participants