HAR from chrome through python

1,692 views
Skip to first unread message

Siva Kesava

unread,
Aug 26, 2016, 1:09:03 PM8/26/16
to proto...@chromium.org
Hi,
    I am working on performance measure of QUIC when compared to other protocols.For that I require to download HAR from chrome through python code.Can anyone suggest a way how to do that? I am trying by using browsermob proxy but could not get results and I am completely new to this field . So can anyone give a good way on how to download HAR from chrome automatically?


Thanks
Siva Kesava  

Peng Qian

unread,
Sep 6, 2016, 6:44:47 PM9/6/16
to QUIC Prototype Protocol Discussion group
Hi,
    check this https://github.com/cyrus-and/chrome-har-capturer. Thanks for the effort from Andrea Cardaci, you can use this tool to automatically record HAR file from a google-chrome browser.

Best regards,
Peng

Siva Kesava

unread,
Sep 7, 2016, 3:24:31 AM9/7/16
to proto...@chromium.org
Thanks for your reply but there is a small problem. I want to download HAR for a youtube video at the end of its duration but the above code downloads the code as soon as the video starts. The maximum that can be done with the above code is we can delay downloading of HAR for a fixed input delay but I don't know the duration or how much time it will take to complete its duration depending on net speed. So are there any other ways using selenium or browsermob proxy to overcome this problem?

Thanks
Siva Kesava
IIT Kharagpur




Sent with MailTrack

--
You received this message because you are subscribed to the Google Groups "QUIC Prototype Protocol Discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to proto-quic+unsubscribe@chromium.org.
To post to this group, send email to proto...@chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

fuuman5

unread,
Apr 24, 2017, 4:54:39 AM4/24/17
to proto...@chromium.org
Hey Siva, 
I am working on some web tracking issues and I am interested in generating har logs through chrome debugging protocol with python, too. Did you make some progress here or are you able to provide me some tipps what you actually did? 
Thanks in advance.
Marco 

Siva Kesava

unread,
Apr 24, 2017, 4:57:28 AM4/24/17
to proto...@chromium.org
I actually used that Github repository and for my case, I found out the video duration in advance and added another 5 minutes to it and gave it as a delay while starting the HAR download process.

Regards
Siva Kesava


On Mon, Apr 24, 2017 at 2:24 PM, fuuman5 <mscha...@gmail.com> wrote:
Hey Siva, 
I am working on some web tracking issues and I am interested in generating har logs through chrome debugging protocol with python, too. Did you make some progress here or are you able to provide me some tipps what you actually did? 
Thanks in advance.
Marco


Am Freitag, 26. August 2016 19:09:03 UTC+2 schrieb Siva Kesava:
Hi,
    I am working on performance measure of QUIC when compared to other protocols.For that I require to download HAR from chrome through python code.Can anyone suggest a way how to do that? I am trying by using browsermob proxy but could not get results and I am completely new to this field . So can anyone give a good way on how to download HAR from chrome automatically?


Thanks
Siva Kesava  

--
Reply all
Reply to author
Forward
0 new messages