Giter Club home page Giter Club logo

tldextract's People

Contributors

duyazhe avatar elliotwutingfeng avatar joeguo avatar pirsquare 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  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  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

tldextract's Issues

x509: certificate has expired or is not yet valid accessing https://publicsuffix.org/list/public_suffix_list.dat

We are getting following error retrieving public_suffix_list

x509: certificate has expired or is not yet valid: current time 2023-06-01T15:50:05Z is after 2021-09-30T14:01:15Z","timestamp":"2023-06-01T15:50:05Z"

Also, "curl" returns the same error.

Our Server configuration
"CentOS Linux" version 7

There seems to be an old issue reported on this but is marked as closed - publicsuffix/list#33

Please help!

tldextract doesn't work with internationalized domain names

The following code doesn't produce the expected result, due to tldextract's code checking for letters/digits/dash in the resulting domain name:

package main
import (
"fmt"
"github.com/joeguo/tldextract"
)

func main() {
    cache := "/tmp/tld.cache"
    extract, _ := tldextract.New(cache, true)
    result:=extract.Extract("https://allestörungen.at/stoerung/upc/vienna")
    fmt.Printf("%+v\n",result)
}

Wildcards broken?

This library does not properly parse wildcards, it seems:

Using the following code:

package main
import (
    "github.com/joeguo/tldextract"
    "fmt"
)

func main() {
    var test string
    var err error
    tld, _:= tldextract.New("/tmp/tldcache.txt",false)

    for err == nil {
        fmt.Printf("string: ")
        fmt.Scanf("%s\n", &test)
        result := tld.Extract(test)
        if result.Flag == tldextract.Malformed {
            fmt.Println("Error", result)
        } else {
            fmt.Printf("%s.%s\n", result.Root, result.Tld)
        }
    }
}

I get:

string: http://foo.bar.com
bar.com
string: http://foo.co.uk
Error &{0   }
string: http://foo.*.uk
foo.*.uk

The "foo.*.uk" is most certainly incorrect.

panic: runtime error: invalid memory address or nil pointer dereference

Hello
When I run the program, it gives me this error

**```
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x6c2204]

goroutine 1 [running]:
github.com/joeguo/tldextract.(*TLDExtract).getTldIndex(0xc00000a0c0?, {0xc0000ee030, 0x7221b2?, 0x1?})
C:/Users/Jorjjji/go/pkg/mod/github.com/joeguo/[email protected]/tldextract.go:172 +0x64

Please add LICENSE file

First of all, thanks for sharing a useful software!

Could you add LICENSE file?
The following site might help to choose a license.
http://choosealicense.com/

I hope you choose Permissive license like MIT or Apache 2.
Thanks!

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.