Feb-03-2017, 09:21 AM
(Feb-03-2017, 08:43 AM)wavic Wrote: I run a copy of the code and got this:The error is on you side,
to make sure i tested in Python 3.6 with virtual environment(new install of BeautifulSoup and Requests).
It do work,make sure your libraries are updated or run virtual environment(with new install).
Break it down,to see where the problem is.
First as eg,do you get source code.
import requests url = 'http://theiconic.com.au/mens-clothing-tshirts-singlets/?page=1' source_code = requests.get(url) plain_text = source_code.text print(plain_text[:90])
Output:<!DOCTYPE html>
<!--[if IE 7]> <html xmlns:ng="http://angularjs.org" class="ie7" lang="en