Is there a way to export the entire browser history from Chrome under Android, in any file format (CSV, XML, whatever)?
I have Chrome 42.0.2311.111 under Android 4.2.2.
Is there a way to export the entire browser history from Chrome under Android, in any file format (CSV, XML, whatever)?
I have Chrome 42.0.2311.111 under Android 4.2.2.
You can use Google Takeout to download a JSON file of your Android Chrome history.
You can also download your bookmarks, along with a lot of other Google data.
Chrome doesn't allow backup using ADB and there are no extensions available for mobile version so you should have root access before you proceed further.
Grab the History
file from the location /data/data/com.android.chrome/app_chrome/Default/
into PC. A Root Explorer may help.
Install an SQLite manager such as SQLiteman or DB Browser for SQLite in PC.
Both has the option under menu bar to export the database into an SQL file or a particular table into CSV file.
Well at least you now know where the history is stored, so you may find a relevant software to directly export the database into a CSV or XML file.
If the tabs are still open you may find the following useful, via dev.to - When you never close tabs on your mobile Chrome browser. Not quite a solution here, but was what I was looking for when I came across this question.
Chrome's remote debugging has a remote-debugging-legacy mode that allows you to view tabs on a connected computer via adb
.
Settings > About Phone > Build Number
and tapping 7 timesSettings > Developer options
or Settings > System > Advanced > Developer options
. This menu will only be visible after the previous step../adb devices -l
. You may need to configure adb and grant permission from your phone.Once your phone is set up with adb
you can:
# Connect to Chrome Android's legacy debugging API
./adb forward tcp:9222 localabstract:chrome_devtools_remote
# Visit http://localhost:9222 to verify, then
curl http://localhost:9222/json/list > mobile-tabs.json
You should be able to export ALL your history from ALL devices under your Google Account on practically any browser. It's generally easiest to do it from your desktop, however.
Touch the 3 dots on right top of screen. choose "history" when it loads, again touch 3 dots and choose "print" Give new filename to save to then scroll to bottom of history and choose "older". after the page loads, repeat the above.
A hassle, but it works for me... Later you can use various apps to combine the created .pdf files. Oh, if this works for you, then.. "You're welcome".