Of course, I hope you know that my code is only a case study trying to learn how to use the fasthtmlparser. In practice, you must consider that the <a> tag can contain other attributes and the href attribute need not be the first one. Therefore, the more general approach would be to use "<a " as SEARCH_TAG and, if it is found, scan the NoCaseTag parameter for the position of the "href=" phrase.