mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #46] search.py: how to use it, description in readme? #28
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zaszlo on GitHub (Oct 2, 2017).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/46
From the issues I've found out about the recommended search.py way of searching in the archive. I Have set the archive path.
For some search terms I get this exception but for others it just works as expected.
Maybe I'm not doing something right?
./search.py "church"
Traceback (most recent call last):
File "./search.py", line 66, in
print('\n'.join(matches))
File "./search.py", line 16, in
return (l.decode().replace(archive_path, '') for l in ag.stdout.splitlines())
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcc in position 75: invalid continuation byte
If I add the --exact parameter to it, it will not yield the exception but also no results are given.
@pirate commented on GitHub (Oct 3, 2017):
search.pyisn't finished yet, for now you can run the search command directly:https://geoff.greer.fm/ag/
Then