无法在 Windows10、Python3.4-webscraping 上安装 BeautifulSoup
Unable to Install BeautifulSoup on Windows10, Python3.4-webscraping
关于如何安装美丽的汤,我已经研究了整个网站。我已经安装了 selenium
我目前正在尝试提取使用 Python 的工作,同时包括工作的详细信息,例如位置,即;职位名称、薪水(如果已发布)等。在 html table 中作为决赛在互联网上发布。不要完全咀嚼我..让我休息一下,我边走边学。
我知道我需要用
分隔段落,但是如何去做,是我遇到困难的地方。这是我目前所拥有的。
import parser
import urllib.request
import html.entities
import selenium
import re
sauce = urllib.request.urlopen('http://Indeed.com/').read()
tb = re.find_all('<p>')
print(sauce)
我认为这是一个错误:
Traceback (most recent call last): File "C:/Devel/BSoup4.py", line
8, in
table = re.find_all('
') AttributeError: 'module' object has no attribute 'find_all'
请帮忙。先感谢您!
根据 docs
语法是 re.findall()
而不是 find_all
关于如何安装美丽的汤,我已经研究了整个网站。我已经安装了 selenium
我目前正在尝试提取使用 Python 的工作,同时包括工作的详细信息,例如位置,即;职位名称、薪水(如果已发布)等。在 html table 中作为决赛在互联网上发布。不要完全咀嚼我..让我休息一下,我边走边学。
我知道我需要用
分隔段落,但是如何去做,是我遇到困难的地方。这是我目前所拥有的。
import parser
import urllib.request
import html.entities
import selenium
import re
sauce = urllib.request.urlopen('http://Indeed.com/').read()
tb = re.find_all('<p>')
print(sauce)
我认为这是一个错误:
Traceback (most recent call last): File "C:/Devel/BSoup4.py", line 8, in table = re.find_all('
') AttributeError: 'module' object has no attribute 'find_all'
请帮忙。先感谢您!
根据 docs
语法是 re.findall()
而不是 find_all