Metadata-Version: 2.1
Name: flomo
Version: 0.0.1a0
Summary: Flomo API (third party)
Home-page: https://github.com/Benature/flomo
Author: Benature Wang
Author-email: wbenature@163.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: bs4

<a href="https://flomoapp.com/"><img src="./media/logo-192x192.png" height="100" align="right"></a>

# [flomo](https://flomoapp.com/)

一个非官方的 API python 玩具盒

- 【播客】[小宇宙url 👉 flomo memo](./xyz2flomo.py)
  - Alfred + flomo ([demo 视频](https://m.okjike.com/originalPosts/5fc1e8f0c5e485001882a2be?s=ewoidSI6ICI1ZWUxZDQ1OGY5MmZiYzAwMTc3NWMwZTgiCn0=))
- 发送新的 flomo memo
- 按模板创建 memo (inspired by [即刻@阿粒](https://m.okjike.com/originalPosts/5fc648d8c463ad00188e917a?s=ewoidSI6ICI1ZWUxZDQ1OGY5MmZiYzAwMTc3NWMwZTgiCn0=))

> *prefer python3.7+*
> 欢迎 Star 🌟、Fork 🍴、Issue 💬、PR. 一起让 flomo 用的更加得心应手

## Usage 使用

将 [`config_sample.py`](./config_sample.py) 更名为 `config.py`

### Cookies

如图配置 cookies

<p align="center">
  <a href="#"><img src="https://s3.us-west-2.amazonaws.com/secure.notion-static.com/df9f58b6-0e3d-4bc4-86fa-0140afa6c203/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAT73L2G45O3KS52Y5%2F20201201%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20201201T165601Z&X-Amz-Expires=86400&X-Amz-Signature=838775cb2a76b8e8e496931c1d0b20cc3347b0d713c7b6d5ff1e852adb83c510&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Untitled.png%22" width="80%"/></a>
</p>

[...待补充](https://www.notion.so/benature/flomo-0061a1c4d4b643c58a9855aa8a28e0fb)

### Notify 通知

详细说明见 [About Notification 关于通知](#about-notification-关于通知)

配置参照 [terminal-notifier](https://github.com/julienXX/terminal-notifier#options)

### Template 模板

- `path`: 模板路径
- `time_format`: 日报日期格式

默认模板为[日报](./templates/daily.html)，可自行修改格式

## Workflow

### Alfred (macOS)

[workflow 下载](https://github.com/Benature/flomo/releases/download/v0.0.2-alpha/flomo.alfredworkflow)

代码没有放在 workflow 里面，需要根据各位电脑稍做适配:  
在 `Run Script` 中

- `python` 命令需要修改为电脑中 `python3` 的路径 (eg. `/Users/xxx/miniconda3/bin/python.app`)
- `.py` 文件的**绝对路径**修改为仓库所在路径 (eg. `/Users/xxx/Documents/Github/FUN/flomo/flomo.py`)


### Wox (Windows)

*TBD...*

## About Notification 关于通知

（macOS）有以下两种通知方法来实现：

- apple script
- **[terminal-notifier](https://github.com/julienXX/terminal-notifier)** (recommended)

推荐后者，前者简单粗暴，后者好处在于

- 设置了 logo
- 可自定系统提示音
- 支持点击通知后跳转到 flomo app
  - 跳转到 Chrome app
  - 跳转到 [flomoapp.com](https://flomoapp.com/) 网页

不过需要另外安装

```shell
brew install terminal-notifier
```

---

# Demo

<!-- <br/> -->
<p align="center">模板生成</p>
<p align="center">
  <a href="#Demo"><img src="https://s3.us-west-2.amazonaws.com/secure.notion-static.com/eb6b327b-c1ed-45fe-8b6c-f527a693be86/Kapture_2020-12-02_at_13.54.27.gif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAT73L2G45O3KS52Y5%2F20201202%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20201202T120256Z&X-Amz-Expires=86400&X-Amz-Signature=fd840033ef4bb2c125738fb2036482a481a983c748944751a81aeee5a665a90a&X-Amz-SignedHeaders=host&response-content-disposition=filename%20%3D%22Kapture_2020-12-02_at_13.54.27.gif%22" width="80%"/></a>
</p>

