Skip to main content

NART: Naver RealTime Keyword

Project description

Copyright (c) 2019 Keunhyun Oh

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Description: # nart
[![PyPI version shields.io](https://img.shields.io/pypi/v/ansicolortags.svg)](https://pypi.org/project/nart/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/ansicolortags.svg)](https://pypi.org/project/nart/)
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)

NART: NAver RealTime keywords

# Install
```console
foo@bar:~$ pip install --upgrade nart
```

# API
```python
from nart.nart import Nart
from nart.writer.builtins.csvwriter import CSVWriter

outrepos = [CSVWriter(path='/tmp/test.csv')]
nart = Nart(outrepos)
nart.write_nart()
nart.run_with_hour(interval=1)

```

You can define custom outrepositories and datasources by using inheriting OutRepository and DataSource

# Console
```console
usage: nart [-h] [-u TIMEUNIT] [-iv INTERVAL] [-csv CSVOUT] [-v] [-on]

NART needs arguments

optional arguments:
-u, --timeunit Input schedule time unit. (hour, min, or sec)
-h, --help show this help message and exit
-iv INTERVAL, --interval INTERVAL
Inverval time between collecting realtime keywords.
Timeunit is based on timeunit
-csv CSVOUT, --csvout CSVOUT
Set the csvfilepath, if you want to write csvfile
-v, --verbose Set the flag, if you want for results to be printed
-on, --startontime Set the flag, collecting data start on the hour or on
the min
```

For example
```console
foo@bar:~$ nart -u hour -csv /tmp/test.csv -v -iv 1
```

Platform: any
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Environment :: MacOS X
Classifier: Intended Audience :: Information Technology
Classifier: Environment :: Console
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Topic :: Office/Business :: News/Diary
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: POSIX :: Linux
Requires-Python: >=3.6

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

nart-1.1-py3-none-any.whl (12.3 kB view hashes)

Uploaded Python 3

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