我正在尝试从这个facebook页面https://www.facebook.com/marketplace/item/1612977352197759/中提取文本。文本是项目描述,即地图前的文本: ?ref=messenger_banner')print(tree)
link = tree.xpath("//span[contains
我已经使用BeautifulSoup4安装了easy_install。安装似乎是可以的,因为在Python中和从bs4导入BeautifulSoup中使用时没有错误。在我从cmd控制台调用的脚本中使用"from bs4 import BeautifulSoup“时会出现错误。从bs4导入BeautifulSoup
import re
from bs4 im