Update parser.py

get_links() now filters links correctly