selenium chrome浏览器登录控制台

时间:2013-06-17 18:35:44

标签: python google-chrome selenium web-crawler

我的python抓取项目遇到了问题。我在python中使用chrome和selenium进行爬网,环境是Windows 7.这是一个控制台应用程序。问题是程序运行时有时控制台会不断输出有关chrome浏览器的以下数据:

**[044:202] AUTHORIZED; socket handshake complete
[044:211] F->C: ["fs",{"pr":"a"}]
[044:233] F->C: ["mf","mf4.0","4.0.1.13525",2,{"audioCodecs":[[103,"ISAC",1,0,16
000],[104,"ISAC",1,0,32000],[9,"G722",1,64000,16000],[102,"ILBC",1,13300,8000],[
0,"PCMU",1,64000,8000],[8,"PCMA",1,64000,8000],[107,"CN",1,0,48000],[106,"CN",1,
0,32000],[105,"CN",1,0,16000],[13,"CN",1,0,8000],[127,"red",1,0,8000],[126,"tele
phone-event",1,0,8000]],"audioRtpHdrExts":[{"id":1,"uri":"urn:ietf:params:rtp-hd
rext:ssrc-audio-level"}],"camDeviceName":"FH13FF-238","caps":15,"cpuArchitecture
":0,"cpuCacheSize":3145728,"cpuFamily":6,"cpuFlags":["sse2","ssse3","sse4_1","ss
e4_2"],"cpuHasSSE2":true,"cpuModel":37,"cpuSpeed":2527,"cpuStepping":5,"cpuVendo
r":"GenuineIntel","cpus":4,"cpusPhysical":2,"cryptoSuites":["AES_CM_128_HMAC_SHA
1_80","AES_CM_128_HMAC_SHA1_32"],"dataChannelVersion":1,"effectsVersion":10,"mac
hineModel":"Not available","remotingAssistanceAllowed":0,"remotingVersion":1,"re
nderer":2,"rtcpMux":true,"screencast":2,"screencastLocalPreview":1,"supportsConc
urrentSessions":true,"transports":["i","gice"],"videoCodecs":[[99,"H264-SVC",640
,360,30],[97,"H264",640,360,30],[98,"H263",640,360,30]],"videoRtpHdrExts":[{"id"
:2,"uri":"urn:ietf:params:rtp-hdrext:toffset"}]}]
[047:353] ClientChannel::HandleOnlineCheck: Starting check
[047:353] ClientChannel::HandleOnlineCheck: OK; current state: 3
[049:207] ClientChannel::HandleOnlineCheck: Starting check
[049:207] ClientChannel::HandleOnlineCheck: OK; current state: 3
[067:794] Starting client channel.
[067:796] Read port file, port=1836
[067:800] Initiated connection to GoogleTalkPlugin
[067:818] Socket connection established
[067:819] ClientChannel::ScheduleOnlineCheck: Online check in 5000ms
[067:820] Got cookie response, socket is authorized
[067:822] AUTHORIZED; socket handshake complete
[067:822] F->C: ["fs",{"pr":"a"}]
[067:836] F->C: ["mf","mf4.0","4.0.1.13525",2,{"audioCodecs":[[103,"ISAC",1,0,16
000],[111,"opus",2,64000,48000],[104,"ISAC",1,0,32000],[109,"CELT",1,64000,32000
],[110,"CELT",2,64000,32000],[9,"G722",1,64000,16000],[102,"ILBC",1,13300,8000],
[0,"PCMU",1,64000,8000],[8,"PCMA",1,64000,8000],[107,"CN",1,0,48000],[106,"CN",1
,0,32000],[105,"CN",1,0,16000],[13,"CN",1,0,8000],[127,"red",1,0,8000],[126,"tel
ephone-event",1,0,8000]],"audioRtpHdrExts":[{"id":1,"uri":"urn:ietf:params:rtp-h
drext:ssrc-audio-level"}],"camDeviceName":"FH13FF-238","caps":15,"cpuArchitectur
e":0,"cpuCacheSize":3145728,"cpuFamily":6,"cpuFlags":["sse2","ssse3","sse4_1","s
se4_2"],"cpuHasSSE2":true,"cpuModel":37,"cpuSpeed":2527,"cpuStepping":5,"cpuVend
or":"GenuineIntel","cpus":4,"cpusPhysical":2,"cryptoSuites":["AES_CM_128_HMAC_SH
A1_80","AES_CM_128_HMAC_SHA1_32"],"dataChannelVersion":1,"effectsVersion":10,"ma
chineModel":"Not available","remotingAssistanceAllowed":1,"remotingVersion":1,"r
enderer":2,"rtcpMux":true,"screencast":2,"screencastLocalPreview":1,"supportsCon
currentSessions":true,"transports":["i","gice"],"videoCodecs":[[100,"VP8",640,40
0,30],[116,"red",640,400,30],[117,"ulpfec",640,400,30],[99,"H264-SVC",640,360,30
],[97,"H264",640,360,30],[98,"H263",640,360,30]],"videoRtpHdrExts":[{"id":2,"uri
":"urn:ietf:params:rtp-hdrext:toffset"}],"vsVersion":1}]
[067:850] F->C: ["getdevicestate","15","0",["__default_device","Microphone (Real
tek High Definition Audio)"],"0",["__default_device","Speakers (Realtek High Def
inition Audio)"],"0",["FH13FF-238","CyberLink Web Camera Filter"]]**  !

请帮我摆脱这个问题。我需要从程序中删除这样的输出。

谢谢, 的Sohel。

1 个答案:

答案 0 :(得分:0)

我没有在python中使用selenium,但是这个ruby示例可能有用:Silencing ChromeDriver.exe logging