Skip to content

Yevgnen/resworb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents TOC

Introduction

resworb is a Python library for manipulating browser data.

Supported resources (WIP)

Safari Firefox Chrome
Opened tabs
Cloud tabs
Reading list
Bookmarks
Histories

Installation

From pip

pip install resworb

From source

pip install git+https://github.com/Yevgnen/resworb.git

Usages

Please note that the browser database may be locked if your browser is running.

Exporting user data (opened tabs, reading list, cloud tabs, bookmarks, histories)

# -*- coding: utf-8 -*-

from resworb.browsers.safari import Safari

safari = Safari()

print(safari.export(kinds="cloud_tabs"))
print(safari.export(kinds="readings"))
print(safari.export(kinds="bookmarks"))
print(safari.export(kinds="histories"))
print(safari.export(kinds="all"))
print(safari.export(kinds=["bookmarks", "histories"]))

Using scripts

safari export -s all -t output.yaml

Notes

  1. Currently on tested on macOS.
  2. Some interfaces may only work as expected when the browser is not running.

TODO

  • Better exception handling.
  • Cross-platform support.
    • Support for Linux, Windows.
    • Remove platform dependent code.
  • Fine-grained interfaces.

Contribution

Formatting Code

To ensure the codebase complies with a style guide, please use flake8, black and isort tools to format and check codebase for compliance with PEP8.

References