Write program that will extract the web addresses

Assignment Help Python Programming
Reference no: EM132238188

In this week's module, you will find a History database that was taken from Google Chrome. You will be using this History file to get the list of Web addresses that the user has visited.

You will write a program that will take this database file and extract the Web addresses that the user visited, the number of times the page was visited and the last time it was visited. The last time will not be readable by humans but you don't have to worry about converting it for the purposes of this program. The schema from the database is below. Find the correct table that you need to query and the correct columns from that table.

Include the attribution block and document your code. Use self-documenting variable names. Make your output look presentable and also make sure that it can be understood by someone who doesn't know what the purpose of the program is (in other words, don't just dump the output to the screen without some description of it somewhere in the output).

CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY, value LONGVARCHAR);
CREATE TABLE urls(id INTEGER PRIMARY KEY,urlLONGVARCHAR,titleLONGVARCHAR,visit_count INTEGER DEFAULT 0 NOT NULL,typed_count INTEGER DEFAULT 0 NOT NULL,last_visit_time INTEGER NOT NULL,hidden INTEGER DEFAULT 0 NOT NULL,favicon_id INTEGER DEFAULT 0 NOT NULL);
CREATE TABLE visits(id INTEGER PRIMARY KEY,url INTEGER NOT NULL,visit_time INTEGER NOT NULL,from_visitINTEGER,transition INTEGER DEFAULT 0 NOT NULL,segment_idINTEGER,visit_duration INTEGER DEFAULT 0 NOT NULL);
CREATE TABLE visit_source(id INTEGER PRIMARY KEY,source INTEGER NOT NULL);
CREATE INDEX visits_url_index ON visits (url);
CREATE INDEX visits_from_index ON visits (from_visit);
CREATE INDEX visits_time_index ON visits (visit_time);
CREATE TABLE keyword_search_terms (keyword_id INTEGER NOT NULL,url_id INTEGER NOT NULL,lower_term LONGVARCHAR NOT NULL,term LONGVARCHAR NOT NULL);
CREATE TABLE downloads (id INTEGER PRIMARY KEY,current_path LONGVARCHAR NOT NULL,target_path LONGVARCHAR NOT NULL,start_time INTEGER NOT NULL,received_bytes INTEGER NOT NULL,total_bytes INTEGER NOT NULL,state INTEGER NOT NULL,danger_type INTEGER NOT NULL, interrupt_reason INTEGER NOT NULL,end_time INTEGER NOT NULL,opened INTEGER NOT NULL,referrer VARCHAR NOT NULL,by_ext_id VARCHAR NOT NULL,by_ext_name VARCHAR NOT NULL,etag VARCHAR NOT NULL,last_modified VARCHAR NOT NULL, mime_type VARCHAR(255) NOT NULL DEFAULT "", original_mime_type VARCHAR(255) NOT NULL DEFAULT "");
CREATE TABLE downloads_url_chains (id INTEGER NOT NULL,chain_index INTEGER NOT NULL,url LONGVARCHAR NOT NULL, PRIMARY KEY (id, chain_index) );
CREATE TABLE segments (id INTEGER PRIMARY KEY,nameVARCHAR,url_id INTEGER NON NULL);
CREATE INDEX segments_name ON segments(name);
CREATE INDEX segments_url_id ON segments(url_id);

Attachment:- Programming.zip

Verified Expert

This is a simple python program, which is reading the chrome history database.We are using sqlite to read history.db file that is provided.We are then printing the webpage visited, the number of times it was visited, And the last time it was visited.

Reference no: EM132238188

Questions Cloud

What are your proudest achievements : What are the significant factors or events in your life that have influenced your desire or ability to enter a post-secondary institution?
Healthcare delivery systems strategic plan : Conduct an Internet search for a real world hospital or healthcare delivery systems strategic plan - What specific HIM initiatives are included
The roles of stakeholders in an e-learning environment : Describe the roles of four key stakeholders in an e-Learning environment, namely students, instructors, administrators, and technical support staff.
What factors specifically interrupt the flow of food : The widespread use of microbiological, chemical, and other forms of pesticides in food continues to be a serious issue throughout the global food chain.
Write program that will extract the web addresses : write a program that will take this database file and extract the Web addresses that the user visited, the number of times the page was visited and the last
How are they supposed to solve the problem of evil : What are "soul building evils" according to Sober? How are they supposed to solve the problem of evil?
Build a logistic regression classifier : CAP5610 Machine Learning Assignment, University of Central Florida, USA. Build a logistic regression classifier and apply it to sentiment classification
Translating evidence into clinical practice : evidence-based practice that you see yourself using as a provider in your clinical practice and discuss how it meets the listed benefits
Research paper - the growth of jail in rural america : Research paper - The Growth of Jail in Rural America An analysis of existing literature on the topic alone will not suffice for your research design

Reviews

Write a Review

Python Programming Questions & Answers

  Python programming to solve this problem

Write a statement that adds 1 to deansList and prints studentName to standard out if gpa exceeds 3.5.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Improve the code for the haunted house game

Improve the readability of the code by improving the function names, variables, and loops, as well as whitespace. Document these changes in your journal and define a win condition for the game, for example, collecting all items and returning to the..

  Design and implement mini-missions in the haunted house

Create a cheat commands in the game so player can pick up any item he wants from any location in the map. You have to name this cheat command 'giveme'

  Create a class variable and assign an initial value of zero

Python Programming Assignment - You need to create a class variable and assign an initial value of zero to it and update it throughout your program

  Write a python program to add ded at the end of a given word

Write a Python program to add 'ded' at the end of a given word (length should be at least 3). If the given string already end with ‘ded' then add ‘ing' instead.

  You will define an operation on positive integers called

you will define an operation on positive integers called twiddle which consists of summing the squares of the digits of

  Write a python program that will index a set of documents

You are going to write a python program that will index a set of documents and build a function to search through these documents using the index

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  What is the purpose of variable fragnum

What is the purpose of variable fragNum in rdt1.0 sender code and how is the segmented message merged back in receiver? Which operation justifies it?

  Develop a python program to calculate income tax

Develop a Python program to calculate income tax as described in the above table. For this solution, nest the if-then logic. Do not use elif.

  Write report explaining theory underlining the key concepts

ICT705 Data and System Integration - University of the Sunshine Coast - write a report explaining the theory underlining the key concepts around the design

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd