Let $X$ be the Cantor space and let $Y$ be the Cantor middle thirds set. Define the function $f:X\rightarrow Y$ such that:
$$ f(x) = f((x_0, x_1, ...)) = 0.y_0y_1...\quad\text{where }\begin{cases} y_i = x_i&\text{if }x_i = 0 \\ y_i = 2&\text{if }x_i = 1 \end{cases} $$
where the output is a decimal expansion in ternary base. Clearly this is a bijective function since the Cantor set does not contain any numbers with decimal expansion in ternary base containing something other than 0 or 2. Let $U$ be open in $Y$, then under the product topology all but finitely many coordinates of any $x\in U$ are the same for each $x$. So there exists a $n$ such that for all $x\in U$, and for all $N\geq n$ $x_N$'s are equal. Observe that each element in $f^{-1}(U)$ is then of the form $0.y_0y_1...y_ny_\alpha y_\beta...$, where $y_0,...,y_n$ are fixed but $y_\alpha, y_\beta,...$ can be either 0 or 2. So $f^{-1}(U)$ is some $\epsilon/\left(3^n\right)$-ball intersected with the Cantor set, generating an open set in the subspace topology inherited from $\left[0,1\right]$. Hence $f$ is continuous. Let $V$ be open in $X$, then $V$ is some $\epsilon'$-ball intersecting with the Cantor set. Note then that $V = \epsilon/\left(3^n\right)$, where $n = \min\left\lbrace i \right\rbrace$ such that $\epsilon/\left(3^i\right)\leq\epsilon'$. Therefore elements in $V$ are of the form $0.y_0y_1...y_ny_\alpha y_\beta...$, where $y_0,...,y_n$ are fixed but $y_\alpha, y_\beta,...$ can be either 0 or 2. So $f(V) = (f^{-1})^{-1}$ consists of elements $x$ such that for all $N\geq n$ $x_N$'s are equal. Hence $f(V)$ is open in the product topology on the Cantor space. Hence $f^{-1}$ is continuous. This shows that $f$ is a homeomorphism.
I would like some advice on how to clean up the proof or if I forgot anything in the proof because it looks somewhat messy to me.