import requests
from bs4 import BeautifulSoup
res = requests.get("https://www.ptt.cc/bbs/NBA/index4807.html", verify
= False)
soup = BeautifulSoup(res.text,"lxml")
soup
SSLError Traceback (most recent call
last)
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-
packages/requests/packages/urllib3/connectionpool.py in urlopen(self,
method, url, body, headers, retries, redirect, assert_same_host,
timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
I tried to type "verify = False" but it seemed not useful.
I used juypter and created python3 project to run this code. My python version are 2.7.13 and 3.4.3, but I can only create python3 with juypter, and I can't import "requests" under the version of 2.7.13.