Pi crawler software pi 5

cd ~/
git clone -b v2.0 GitHub - sunfounder/robot-hat: Robot Hat python library --depth 1
cd robot-hat
sudo python3 install.py

This is copied from instruction files but pi returns a syntax error on the ~ I am new to this please help?

According to the installation instructions you provided, they are correct.
Please provide us with a screenshot of the printed information from running the command, so we can better assist you in analyzing and resolving the issue.

Thank you for your reply I manage with the help of a friend to get the code installed and I continue to build the crawler.