import bs4
import requests
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
url = 'http://twitter.com'
r = requests.get(url, headers=headers)
p = bs4.BeautifulSoup(r.text, 'html.parser')
p.js-signup
當我把p.js-signup
到Python Shell中返回美麗的湯蟒蛇3個CSS困擾
Traceback (most recent call last):
File "<pyshell#29>", line 1, in <module>
p.js-signup
NameError: name 'signup' is not defined
我很新的這一點,所以我不知道我做錯了,其他CSS的事情,沒有 ' - ' 在他們做工精細
什麼是JS-註冊? – Exprator