Erro

20 views
Skip to first unread message

cassio soares

unread,
Sep 23, 2021, 8:13:25 AM9/23/21
to beautifulsoup
Olá. Estou com este erro e não consigo resolver.
>>> soup=BeautifulSoup(r.content 'html.parser')
  File "<stdin>", line 1
    soup=BeautifulSoup(r.content 'html.parser')
                                 ^
SyntaxError: invalid syntax

Desde já agradeço.
Att. Cassio

leonardr

unread,
Sep 23, 2021, 10:22:47 AM9/23/21
to beautifulsoup
It looks like you're missing a comma between the two arguments to the constructor. Try this:
(Tradução automática) Parece que falta uma vírgula entre os dois argumentos do construtor. Experimente isto:

soup=BeautifulSoup(r.content, 'html.parser')

Leonard
Reply all
Reply to author
Forward
0 new messages