2011-11-28 5 views
1

Firefox는 그 파일에 전체 스토리를 저장하고 싶습니다. 특정 키워드를 포함하는 링크를 찾으려면 노력하고 있지만 너무 정확하게 작동하지는 않습니다. 혼란스러운 출력 : grep --binary-files = 텍스트 키워드 /path/to/places.sqlite. 이 파일을 처리하고 Linux의 도구를 사용하여 키워드와의 모든 링크를 찾는 가장 좋은 방법은 무엇이 될까요?places.sqlite 파일을 리눅스로 처리하기

답변

4

sqlite으로 엽니 다. 원하는 패키지 관리자로 sqlite를 설치하고 sqlite3 places.sqlite을 실행하십시오. 그런 다음 데이터에 대해 SQL 쿼리를 수행 할 수 있습니다.

wget -cq https://raw2.github.com/websafe/ffbx/master/ffbx.sh \ 
    && sh ffbx.sh 

을하거나 ffbx.sh를 다운로드하고 README에 설명 된대로 사용 : .schema와 함께, 당신은 select * from moz_places where url like '%google%';

0

등의 작업을 수행 할 수있는 시작이보십시오.

아무런 매개 변수없이 ffbx은 ~/.mozilla/firefox 하위 디렉토리에있는 places.sqlite 개의 파일을 모두 검색합니다.

ffbx.sh 

예시적인 결과 :

1391725993809844  ffbx-example Bookmarks Toolbar  https://www.mozilla.org/en-US/firefox/central/ Getting Started 
1391725993811277  ffbx-example Mozilla Firefox https://www.mozilla.org/en-US/firefox/help/  Help and Tutorials 
1391725993812029  ffbx-example Mozilla Firefox https://www.mozilla.org/en-US/firefox/customize/  Customize Firefox 
1391725993812829  ffbx-example Mozilla Firefox https://www.mozilla.org/en-US/contribute/  Get Involved 
1391725993813492  ffbx-example Mozilla Firefox https://www.mozilla.org/en-US/about/ About Us 
1391725993870487  ffbx-example Bookmarks Toolbar  place:sort=8&maxResults=10  Most Visited 
1391725993870988  ffbx-example Bookmarks Menu place:folder=BOOKMARKS_MENU&folder=UNFILED_BOOKMARKS&folder=TOOLBAR&queryType=1&sort=12&maxResults=10&excludeQueries=1 Recently Bookmarked 
1391725993871436  ffbx-example Bookmarks Menu place:type=6&sort=14&maxResults=10  Recent Tags 
1391726063106065  ffbx-example Unsorted Bookmarks  https://github.com/websafe/ffbx websafe/ffbx · GitHub Firefox,bookmarks,extract,Bash,script,SQLite 

출력 포함 된 각 북마크 TAB 분리 컬럼 :

  • 변형 소인
  • 프로파일 이름
  • 북마크 폴더
  • url,
  • 제목,
  • 태그.

    ffbx.sh /path/to/places.sqlite 
    

    출력 같지만 profile name 열 누락 :

    1391725993809844  Bookmarks Toolbar  https://www.mozilla.org/en-US/firefox/central/ Getting Started 
    1391725993811277  Mozilla Firefox https://www.mozilla.org/en-US/firefox/help/  Help and Tutorials 
    1391725993812029  Mozilla Firefox https://www.mozilla.org/en-US/firefox/customize/  Customize Firefox 
    1391725993812829  Mozilla Firefox https://www.mozilla.org/en-US/contribute/  Get Involved 
    1391725993813492  Mozilla Firefox https://www.mozilla.org/en-US/about/ About Us 
    1391725993870487  Bookmarks Toolbar  place:sort=8&maxResults=10  Most Visited 
    1391725993870988  Bookmarks Menu place:folder=BOOKMARKS_MENU&folder=UNFILED_BOOKMARKS&folder=TOOLBAR&queryType=1&sort=12&maxResults=10&excludeQueries=1 Recently Bookmarked 
    1391725993871436  Bookmarks Menu place:type=6&sort=14&maxResults=10  Recent Tags 
    1391726063106065  Unsorted Bookmarks  https://github.com/websafe/ffbx websafe/ffbx · GitHub Firefox,bookmarks,extract,Bash,script,SQLite, 
    

    Check the README for more examples.

    매개 변수와 함께 사용

관련 문제