Knot invariants from topological entropy