Crossin的编程教室

标题: 网址的代码弄不下来 [打印本页]

作者: mayixb    时间: 2017-12-18 22:16
标题: 网址的代码弄不下来
import requests
from requests.exceptions import RequestException

response=requests.get('http://maoyan.com/board/4?offset=90')
print(response.text)

snap3386.jpg

作者: mayixb    时间: 2017-12-19 15:00
已经搞定了,用selenium模块

from selenium improt webdriver

driver=webdriver.PhantomJS()
driver.get('http://maoyan.com/board/4?offset=90')
print(driver.page_source)




欢迎光临 Crossin的编程教室 (https://bbs.crossincode.com/) Powered by Discuz! X2.5