Error when using Python 3, Sublime BeautifulSoup -


in short, here's code:

import requests bs4 import beautifulsoup import re  request = requests.get("http://www.yellowpages.com/")  soup = beautifulsoup(request.content)  print(soup.find_all("a")) 

given code above i'm getting following error:

[decode error - output not utf-8] 

does know wha's happening , how fix it?

cheers!

assuming using windows: had similar problem solved configuring system path. set system path, add python folder (in case, c:\python3.5) environment variable "path".

computer > left click > properties > advanced system settings > environment variables > find "path" > edit.

don't forget use semicolon without spaces. restart sublime text after this, should work.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -