i am very new to coding and dont have any experience, so i would like to ask if someone can help or direct me somewhere where i can learn. i want to know if there is one already in existence or if there is a way to write a small program in python that would log all internet history on the go or at least at certain intervals. i know that firefox stores it, but it can be easily deleted. i need to write one that will store it on the computer in a text or whatever other format file. if someone can help me out, i would greatly appreciate it.
(Dec-24-2018, 06:06 PM)kpiatrou Wrote: [ -> ]is a way to write a small program in python that would log all internet history on the go or at least at certain intervals. i know that firefox stores it, but it can be easily deleted.
Can store
places.sqlite
in a schedule to have backup.
Quote:The file "places.sqlite" stores the annotations, bookmarks, favorite icons, input history, keywords, and browsing history (a record of visited pages).
If doing schedule with Python and not from OS,is
Python job scheduling for humans fine to use.
As it's a sqlite database file,can access it to query more specific data.
Example for me on Windows:
import sqlite3
db = sqlite3.connect(r"C:\Users\Tom\AppData\Roaming\Mozilla\Firefox\Profiles\tfzfhcx7.default-1393951771719-1522289122174\places.sqlite")
all_urls = db.execute("select url from moz_places").fetchall()
last_10_visit = db.execute("select url from moz_places order by id desc limit 10").fetchall()
visit_count = db.execute("select url from moz_places order by visit_count desc limit 10").fetchall()
Output:
>>> last_10_visit
[('https://pypi.org/',),
('https://pypi.python.org/',),
('https://www.python.org/dev/peps/pep-0008/',),
('https://www.python.org/',),
('https://www.google.com/search?client=firefox-b-ab&q=pythpon+',),
('http://amk.ca/python/howto/regex/',),
('https://repl.it/languages',),
('http://www.pressfire.no/',),
('https://itavisen.no/',),
('http://itavisen.no/',)]
Can store wanted data to own database,using easier DB tool like
TinyDB or
dataset(my
tutorial).