Nov-14-2018, 10:42 PM
code:
import requests from bs4 import BeautifulSoup html = requests.get("http://www.pythonscraping.com/pages/warandpeace.html") bsObj = BeautifulSoup(html.content, 'html.parser') allText = bsObj.findAll(id="title", class="text") print(allText)error:
Error: File "C:\Python36\kodovi\wbp.py", line 19
allText = bsObj.findAll(id="title", class="green")
^
SyntaxError: invalid syntax
Not sure why this error.