我正在尝试使用bs4从脚本标记中获取链接 这是我想要抓取链接的标签 html = """<script type="text/javascript">var player = new Clappr.PlayerdisableVideoTagContextMenu: true, events: { }&quo
我正在写一个代码,可以自动化亚马逊销售商中心与Selenium + BS4的几个过程。我想通过链接文本查找元素,但在,,red rectangle is the part that I want to find by link text中不起作用 我可以通过类名或xpath找到元素,但找不到带有链接文本的相同元素我需要通过链接文本来查找元素,因为我将使用帐户的名称作为我同事的变量。
我想得到包含图像的所有<a href=''> (jpg,png,jpeg)for a in soup.find_all('a', href=True):from bs4 import BeautifulSoupimport re
url = requests.get("https://8ch.net/a/res/869528:jpg|jpeg|png))')