semvec/pypi-packages huggingface dataset:
caoscrawler 0.13.0
A new crawler for LinkAhead
Requires Python: >=3.9


## Welcome

This is the repository of the LinkAhead Crawler, a tool for automatic data
insertion into [LinkAhead](https://gitlab.com/linkahead/linkahead).

This is a new implementation resolving  problems of the original implementation
in [LinkAhead Python Advanced User Tools](https://gitlab.com/caosdb/caosdb-advanced-user-tools)

## Setup

Please read the [README_SETUP.md](README_SETUP.md) for instructions on how to
setup this code.


## Further Reading

Please refer to the [official documentation](https://docs.indiscale.com/caosdb-crawler/) of the LinkAhead Crawler for more information.

## Contributing

Thank you very much to all contributers—[past,
present](https://gitlab.com/linkahead/linkahead/-/blob/main/HUMANS.md), and prospective
ones.

### Code of Conduct

By participating, you are expected to uphold our [Code of
Conduct](https://gitlab.com/linkahead/linkahead/-/blob/main/CODE_OF_CONDUCT.md).

### How to Contribute

* You found a bug, have a question, or want to request a feature? Please 
[create an issue](https://gitlab.com/linkahead/linkahead-crawler/-/issues).
* You want to contribute code?
    * **Forking:** Please fork the repository and create a merge request in GitLab and choose this repository as
      target. Make sure to select "Allow commits from members who can merge the target branch" under
      Contribution when creating the merge request. This allows our team to work with you on your
      request.
    * **Code style:** This project adhers to the PEP8 recommendations, you can test your code style
      using the `autopep8` tool (`autopep8 -i -r ./`).  Please write your doc strings following the
      [NumpyDoc](https://numpydoc.readthedocs.io/en/latest/format.html) conventions.
* You can also  join the LinkAhead community on
  [#linkahead:matrix.org](https://matrix.to/#/!unwwlTfOznjEnMMXxf:matrix.org).


There is the file `unittests/records.xml` that servers as a dummy for a server state with files.
You can recreate this by uncommenting a section in `integrationtests/basic_example/test_basic.py`
and rerunning the integration test.

## Integration Tests

see `integrationtests/README.md`

## Contributers

The original authors of this package are:

- Alexander Schlemmer
- Henrik tom Wörden
- Florian Spreckelsen

## License

Copyright (C) 2021-2022 Research Group Biomedical Physics, Max Planck Institute
                        for Dynamics and Self-Organization Göttingen.
Copyright (C) 2021-2022 IndiScale GmbH

All files in this repository are licensed under a [GNU Affero General Public
License](LICENCE) (version 3 or later).
nonebot-plugin-hacker-news 0.1.3
NoneBot2插件 - 获取Hacker News文章并进行播报
Requires Python: >=3.9

# nonebot-plugin-hacker-news

获取 Hacker News 热门文章的Nonebot插件, 支持获取热门、最新、最佳文章以及文章详情和评论

## 安装

### 通过 pip 安装

```bash
pip install nonebot-plugin-hacker-news
```

### 通过 nb-cli 安装

```bash
nb plugin install nonebot-plugin-hacker-news
```

## 基本命令

``` plaintext
/hn：获取Hacker News热门文章，默认获取前5条
/hn top [数量]：获取热门文章，默认5条
/hn new [数量]：获取最新文章，默认5条
/hn best [数量]：获取最佳文章，默认5条
/hn item [ID]：获取特定文章详情
/hn comments [ID]：获取特定文章及其评论
```

## 定时播报控制

``` plaintext
/hn_broadcast on：开启定时播报功能
/hn_broadcast off：关闭定时播报功能
/hn_broadcast status：查看定时播报状态
/hn_broadcast mode [interval|cron]：设置播报模式(间隔或定时)
/hn_broadcast interval [秒数]：设置播报间隔(最小60秒)
/hn_broadcast cron [表达式]：设置每天固定时间播报，格式为"分 时 日 月 星期"
```

## 配置

```python
api_base_url = "https://hacker-news.firebaseio.com/v0"
api_timeout = 10  # 请求超时时间，单位秒

auto_broadcast = False  # 是否开启定时播报
broadcast_mode = "interval"  # "interval"为间隔模式，"cron"为定时模式
broadcast_interval = 3600  # 定时播报间隔，单位秒
broadcast_cron = "0 8 * * *"  # cron表达式，默认每天早上八点
max_comments_depth = 3  # 获取评论的最大深度
max_items_per_request = 10  # 单次请求最大获取条数
broadcast_groups = [123456789]  # 定时播报群组列表
broadcast_articles_count = 5  # 每次播报的文章数量
```