Skip to main content

Sync Qiita feeds for followees and following tags to Feedly. -> Qiitaでフォロー中のタグとユーザーをFeedlyに同期。

Project description

qiidly
======

[![Build Status](https://travis-ci.org/uraxy/qiidly.svg?branch=master)](https://travis-ci.org/uraxy/qiidly)

FeedlyのAndroidアプリは快適!
blogを読むだけじゃもったいない、
Qiitaの新着記事もチェックするともっと快適!

そのためには…
- Qiitaでフォロー中のタグ
- Qiitaでフォロー中のユーザー
をカンタンにFeedlyに同期できなきゃ。

そのためのツールがqiidlyなのだ。

-----

qiidlyは、
Qiitaでフォロー中のタグとユーザーのフィードをFeedlyに同期するツールです。

Qiitaでフォロー中のものは、Feedlyに次のカテゴリで登録されます。
- フォロー中のタグ -> Qiita:tags
- フォロー中のユーザー -> Qiita:followees

Qiitaでフォローを解除したものは、Feedlyから削除されます。

フィードが既に他のカテゴリで登録されている場合、
そのカテゴリでの登録は維持されます。
つまり、qiidlyで同期したことで、フィードの登録がなくなったり、カテゴリが消えちゃったりすることはありません。


Setup
=====

Libraries
---------
```sh
$ pip install -r requirements.txt
```

- [Python Wrapper for Qiita API v2](https://github.com/petitviolet/qiita_py) ([MIT License](https://petitviolet.mit-license.org/))


API Access token
----------------

Qiita access token
- https://qiita.com/settings/applications

Feedly developer access token
- https://developer.feedly.com/v3/developer/#how-do-i-generate-a-developer-access-token



Usage
=====

```bash
$ python -m qiidly.command_line -h
usage: command_line.py [-h] -q QIITA_TOKEN -f FEEDLY_TOKEN

qiidly: Qiita to Feedly.

optional arguments:
-h, --help show this help message and exit
-q QIITA_TOKEN, --qiita-token QIITA_TOKEN
Qiita access token
-f FEEDLY_TOKEN, --feedly-token FEEDLY_TOKEN
Feedly developer access token
$
```

```sh
$ ./qiidly.sh # == python -m qiidly.command_line -q $QIITA_TOKEN -f $FEEDLY_TOKEN
## Category at Qiita: 'Qiita:tags'
+ linebot
- gwt
+ onsenui => categories['dummy', 'Qiita:tags']
- Cytoscape => categories['dummy']

Sync following tag feeds at Qiita to Feedly? [y/n] y
Done!
## Category at Qiita: 'Qiita:followees'
- uraxy

Sync to Feedly? [y/n] y
Done!
$
```


Tests
=====

with unittest
-------------

```bash
$ python -m unittest discover tests
```

with nose
---------

```bash
$ nosetests --with-coverage --cover-html --cover-package=qiidly
..........
Name Stmts Miss Cover
--------------------------------------
qiidly.py 0 0 100%
qiidly/feedly.py 35 14 60%
qiidly/main.py 108 84 22%
qiidly/qiita.py 45 25 44%
--------------------------------------
TOTAL 188 123 35%
----------------------------------------------------------------------
Ran 10 tests in 0.190s

OK
$ google-chrome cover/index.html
$
```


License
=======
MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qiidly-1.0.0.tar.gz (7.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page