我想用BeautfiulSoup库在reddit页面中收集投票最多的文本,但每当我试图运行代码时,它都找不到h3标签并返回一个空的array.How,我能修复它吗?import requests as re
r=re.get("https://www.reddit.com/r/funfacts/")soup=Bea
我正在解析一个HTMl页面,并且很难弄清楚如何在没有类或id的情况下拉出某个'p‘标签。我正在试着用lat和long来达到'p‘的标签。下面是我当前的代码: from urllib import urlopen as uReq #this opens the URL
from bs4 import BeautifulSoup= uReq(my_url) #opens the HTML and stores