Coder Social home page Coder Social logo

chromebrowerloganalysis's Introduction

ChromeBrowerLogAnalysis

Python was used to analysis chrome brower history data: website visited times; visit duration; brower time on hour/date/month;

#Note on the Chrome history Database ##path os.path.expanduser('~')+"\AppData\Local\Google\Chrome\User Data\Default

##withdraw data from Database SELECT urls.url, urls.visit_count,visits.visit_time,visits.visit_duration FROM urls, visits WHERE urls.id = visits.url;

##warning data

  1. Get the domain of website. exg. get '5730.net' from 'http://www.5730.net/e/member/doaction.php'
  2. Change microsecond to datetime. The record was about'13120364269351327', which means 3644545.63 hours ahead of '1601/01/01 00:00:00' at UTC zero zone. So in China the current time should code like this: df.hours=df.visit_time/10**6/60/60+8 df.visit_time=df.hours.map(lambda x: datetime(1601,1,1)+timedelta(hours=x))

#Reference: how to change microsecond to datetime type: http://blog.csdn.net/a809146548/article/details/51008650

chromebrowerloganalysis's People

Contributors

jason8728 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.