Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试获取特定站点上每个页面的元标记信息,最好是在 txt 文件中。最简单的方法是什么?
(我的意思是除了一页一页,查看源码,然后复制粘贴标签,这是最简单的,但也没有任何乐趣)
您可以使用这样的工具:Scraping Links With PHP,或者您可以使用 fopen 打开页面,然后regunales 表达式可能会取出标签html tags。