单选题 是《在做爬虫时,伪装浏览器发送请求,是对以下哪个头信息进行设置( )
A、Accept
B、Content-Type
C、Cookie
D、User-Agent
单选题 将数据一行一行的写入CSV文件( )
A、writerow()
B、DictWriter()
C、writer()
D、writerows()
单选题 requests.Request()发送请求时设置模拟浏览器,是对哪个参数进行设置。( )
A、header
B、headers
C、set header
D、set headers
单选题 下列模块或库中,能够支持正则表达式语法使用的是( )。
A、lxml
B、re
C、json
D、beautifulsoup4
单选题 下列选项中,用于表示bs4中的标签的类是()
A、Tag
B、NavigableString
C、BeautifulSoup
D、Comment
单选题 下列路径表达式中,表示从根节点bookstore向下选取book子节点的是( )。
A、bookstore
B、 /bookstore
C、//book
D、bookstore/book
单选题 下列几个类中,用于操作请求会话的是
A、Request
B、Session
C、Response
D、Error
单选题 下列选项中,可以匹配任何属性节点的是( )。
A、*
B、node( )
C、@*
D、 node