How to quickly find links in html

醉折花枝作酒筹
Release: 2021-04-25 18:21:44
forward
5304 people have browsed it

This article introduces a way to quickly find links in HTML. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

How to quickly find links in html

def getUrlList(html_str):
	
	pattern = r&#39;<a href="(https.*?/[0-9]{9})".*&#39;
	url_list = re.findall(pattern,html_str)
	return list(set(url_list))
Copy after login

Recommended learning: html video tutorial

The above is the detailed content of How to quickly find links in html. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template