semvec/pypi-packages huggingface dataset:
kblpbyp2 0.0.6
Web scraping and visualization tools for Korean Basketball League's play-by-play data
Requires Python: >=3.6

While replicating the high-quality PBP data of leagues like the NBA, WNBA, and NCAA for the KBL can be challenging, there are still alternative methods to compile such data. One approach involves utilizing web scraping techniques(i.e., Selenium) to extract information from real-time text updates provided by KBL and platforms like ‘NAVER.’ These updates via text offer descriptions of plays, which allow us to have a rudimentary form of PBP data for further analysis and study after cleansing. By using such form of data, the project aims to demonstrate the types of analysis that can be conducted in the KBL.
pyRdfa3 3.6.4
pyRdfa distiller/parser library
Requires Python: >=3.8


[![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.14547.svg)](http://dx.doi.org/10.5281/zenodo.14547)

> **Note:** since I retired a few months ago I do not really maintain this package any more. I would be more than happy if an interested party was interested to take over. In the meantime, I have "archived" the repository to clearly signal that there is no maintenance. I would be happy to unarchive it and transfer ownership if someone is interested.    
> [@iherman](https://github.com/iherman)

> **This new version 3.6.4 is now built and maintained on [prrvchr.github.io/pyrdfa3][1]**

The package can be installed from [PyPI][2] with command:  

`pip install pyRdfa3`

PyRDFA
======

What is it
----------

pyRdfa distiller/parser library. The distribution contains:

- [./src/pyRdfa][3]: the Python library. You should copy the directory somewhere into your PYTHONPATH.  
  Alternatively, you can also install from [Python Package Index][2] with command:  
  `pip install pyRdfa3`

- [./scripts/CGI_RDFa.py][4]: can be used as a CGI script to invoke the library.  
  It has to be adapted to the local server setup, namely in setting the right paths.  
  This script has not been ported to Python 3.x. Open a [new issue][5] if you need it.

- [./scripts/localRdfa.py][6]: script that can be run locally on to transform a file into RDF (on the standard output).  
  Run the script with `-h` to get the available flags.  
  This script has not been ported to Python 3.x. Open a [new issue][5] if you need it.

- [./doc][7]: pyRdfa3 [documentation][8] of the classes and functions (thanks to [pdoc][9]).

The package primarily depends on:
- Python version 3.8 or higher.
- [requests][10]: version 2.32.3 or higher.
- [rdflib][11]: version 7.0.0 or higher.
- [html5lib][12]: version 1.1.

The package has been tested on Python version 3.8 and higher (no more support for Python 2.x).

For the details on RDFa 1.1, see:

- <http://www.w3.org/TR/rdfa-core>
- <http://www.w3.org/TR/rdfa-lite/>
- <http://www.w3.org/TR/xhtml-rdfa/>
- <http://www.w3.org/TR/rdfa-in-html/>

possibly:

- <http://www.w3.org/TR/rdfa-primer/>

[1]: <https://github.com/prrvchr/pyrdfa3/>
[2]: <https://pypi.org/project/pyRdfa3/>
[3]: <https://github.com/prrvchr/pyrdfa3/tree/master/src/pyRdfa>
[4]: <https://github.com/prrvchr/pyrdfa3/blob/master/scripts/CGI_RDFa.py>
[5]: <https://github.com/prrvchr/pyrdfa3/issues/new>
[6]: <https://github.com/prrvchr/pyrdfa3/blob/master/scripts/localRdfa.py>
[7]: <https://github.com/prrvchr/pyrdfa3/blob/master/doc/>
[8]: <https://prrvchr.github.io/pyrdfa3/doc/pyRdfa.html>
[9]: <https://pdoc.dev/docs/pdoc.html>
[10]: <https://pypi.org/project/requests/2.32.3/>
[11]: <https://pypi.org/project/rdflib/7.0.0/>
[12]: <https://pypi.org/project/html5lib/1.1/>
spider-cloud-cos 5.1.9.32
文件云存储连接
Requires Python: >=3.7

# 文件存储云服务

### 文件字节流式上传

引用对象CosClientWrapper的指定上传方式put_object接受两个参数：

| 入参      | 数据类型 | 说明     |
| --------- | -------- | -------- |
| response  | byte     | 字节流   |
| file_path | string   | 文件路径 |
|           |          |          |

使用案例：

```python
from spider_cloud_cos.scos_client import CosClientWrapper

response = requests.get(url, headers=headers, timeout=50)
res = response.content
#路径：平台/业务/日期/关键标识.jpg。eg：kuaishou/qianshuju/20240725/xxxxww.jpg
tel = CosClientWrapper().put_object(res, 'kfyq_spider/plat_315/123123321.jpg')
```

返回值展示：

```json
{
    "url": "https://sv6086.zhuanstatic.com/2a16Kte43GK/kfyq_spider/plat_315/kkkk999.jpg",
    "Content-Length": "0",
    "Connection": "keep-alive",
    "Date": "Thu, 25 Jul 2024 09:30:55 GMT",
    "ETag": "\"9e604ca6ffb0528395aa8c63dbb047c7\"",
    "Server": "tencent-cos",
    "Vary": "Origin, Access-Control-Request-Headers, Access-Control-Request-Method",
    "x-cos-hash-crc64ecma": "17372824613781591196",
    "x-cos-request-id": "NjZhMjFiNGZfZDNiOTViNjRfMTM1OWVfMWU2ZjU5MA==",
    "x-cos-storage-class": "STANDARD"
}
```

### 校验成功

返回值ETag是否有值，成功状态response_json.get("ETag") == True