danny0838 / webscrapbook

A browser extension that captures web pages to local device or backend server for future retrieval, organization, annotation, and edit. This project inherits from legacy Firefox add-on ScrapBook X.
Mozilla Public License 2.0
908 stars 121 forks source link

what is this new "scrapbook" I'm seeing that I did not create #398

Closed grotesque closed 1 month ago

grotesque commented 1 month ago
; Run "webscrapbook help config" for details 

[app]
; name = WebScrapBook
; theme = default
; locale =
; root = .
; index =
; backup_dir = .wsb/backup
; content_security_policy = strict
; allowed_x_for = 0
; allowed_x_proto = 0
; allowed_x_host = 0
; allowed_x_port = 0
; allowed_x_prefix = 0

[book "timepass"]
name = timepass
top_dir = timepass
data_dir = 
tree_dir = .wsb/tree
index = .wsb/tree/map.html
content_security_policy = 
no_tree = false
new_at_top = true
static_index = true

[book "work"]
name = work
top_dir = work
data_dir = 
tree_dir = .wsb/tree
index = .wsb/tree/map.html
content_security_policy = 
no_tree = false
new_at_top = true
static_index = true

[book "personal"]
name = personal
top_dir = personal
data_dir = 
tree_dir = .wsb/tree
index = .wsb/tree/map.html
content_security_policy = 
no_tree = false
new_at_top = true
static_index = true

[book "serial_log"]
name = serial_log
top_dir = serial_log
data_dir = 
tree_dir = .wsb/tree
index = .wsb/tree/map.html
content_security_policy = 
no_tree = false
new_at_top = true
static_index = true

[book "investments"]
name = investments
top_dir = investments
data_dir = 
tree_dir = .wsb/tree
index = .wsb/tree/map.html
content_security_policy = 
no_tree = false
new_at_top = true
static_index = true

; [auth "user1"]
; user = myuser1
; pw = 73337dfdaf99b87be97cb4b4f16645e059da6e5f
; pw_salt = mysalt1
; pw_type = sha1
; permission = all

; [auth "user2"]
; user = myuser2
; pw = pass2mysalt2
; pw_salt = mysalt2
; pw_type = plain
; permission = read

[server]
port = 4545
host = legion
; ssl_on = true
; ssl_key = ./wsb/webscrapbook.key
; ssl_cert = ./wsb/webscrapbook.crt
; browse = false

[browser]
; command =
; cache_prefix = webscrapbook.
; cache_expire = 259200
; use_jar = false

image

What are its contents? Are they a super set of all other scrapbooks?

danny0838 commented 1 month ago

It's the default scrapbook. For details read the doc.

grotesque commented 1 month ago

But my ini doesn't have it. Why does the default scrapbook contains webpages from other scrapbook?

On Tue, Oct 22, 2024 at 11:06 PM Danny Lin @.***> wrote:

It's the default scrapbook. For details read the doc https://github.com/danny0838/PyWebScrapBook/blob/main/webscrapbook/resources/config.md#book-sections .

— Reply to this email directly, view it on GitHub https://github.com/danny0838/webscrapbook/issues/398#issuecomment-2429871281, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACKPQ5T3PABXRZBAHO2OF3Z42EI5AVCNFSM6AAAAABQMW4PNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRZHA3TCMRYGE . You are receiving this because you authored the thread.Message ID: @.***>

danny0838 commented 1 month ago

When not explicitly configured, the default scrapbook has all default settings:


[book ""]
name = scrapbook
top_dir = 
data_dir = data
tree_dir = tree
index = tree/map.html
no_tree = false
new_at_top = false
inclusive_frames = true
static_index = false
rss_root = 
rss_item_count = 50

and its path will contain the data of other scrapbooks, which is of course a bad configuration (and violets the data scheme).

To solve the issue, simply replace the first scrapbook ([book "timepass"]) with [book ""], like what the doc does.