funwarioisii / sagasu

CLI application that search from any resources(twitter favorites, scrapbox, ...)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sagasu

Search from any resources(constructed by URI and sentence) in CLI.

Change direction: Search from Scrapbox articles in CLI.

let's pip install sagasu

Requirements

  • python (>=3.8)
  • (Optional) Twitter Developer token and keys
    • need to crawl your favorite

now supporting

looking for

  • likes in Twitter
  • pages in Scrapbox

how to run

  1. pip install sagasu
  2. edit your config file
  3. (if you collect twitter info) set these environment variables
    • CONSUMER_KEY
    • CONSUMER_SECRET
    • ACCESS_TOKEN
    • ACCESS_TOKEN_SECRET
  4. sagasu indexing
  5. sagasu search

image captioning(experimental)

if you enable caption feature, sagasu search any images.

pip install sagasu[cation]

and SAGASU_CAPTION=true sagasu indexing.

config file

Set config.yml under $HOME/.sagasu/config

sources:
    - source_type: twitter
      target: <user name>
    - source_type: scrapbox
      target: <target project name>

Credits

This package was created with Cookiecutter and the cookiecutter-docker-science project template.

About

CLI application that search from any resources(twitter favorites, scrapbox, ...)


Languages

Language:Python 84.9%Language:Makefile 14.5%Language:Dockerfile 0.6%