Name | pixiv-sql JSON |
Version |
0.9.0
JSON |
| download |
home_page | None |
Summary | Python library to backup pixiv user data to SQLite DB. |
upload_time | 2024-10-17 00:24:09 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT License Copyright (c) 2024 日高 凌 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. |
keywords |
pixiv
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pixiv-sql
[![PyPI version](https://badge.fury.io/py/pixiv-sql.svg)](https://badge.fury.io/py/pixiv-sql)
![build](https://github.com/ryohidaka/pixiv-sql/workflows/Build/badge.svg)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
Python library to backup pixiv user data to SQLite DB.
## Installation
You can install this library using PyPI:
```shell
pip install pixiv-sql
```
## Usage
### Create dataBase file
```bash
touch db/my_pixiv.db
```
### Get `refresh_token`
> To get `refresh_token`, see
> [@ZipFile Pixiv OAuth Flow](https://gist.github.com/ZipFile/c9ebedb224406f4f11845ab700124362)
> or
> [OAuth with Selenium/ChromeDriver](https://gist.github.com/upbit/6edda27cb1644e94183291109b8a5fde)
### Initialize the PixivSQL class with your Pixiv user ID, refresh token, and database:
```python
user_id = "your_user_id"
refresh_token = "your_refresh_token"
database = "db/my_pixiv.db"
app = PixivSQL(user_id, refresh_token, database)
```
### You can then fetch your bookmarked illusts and insert them into the database:
```python
app.bookmarked_illusts()
```
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Raw data
{
"_id": null,
"home_page": null,
"name": "pixiv-sql",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "pixiv",
"author": null,
"author_email": "ryohidaka <39184410+ryohidaka@users.noreply.github.com>",
"download_url": "https://files.pythonhosted.org/packages/c8/4c/468319478376fae8b618f1570f3d5473db5b02236e6f261d8c68c249259d/pixiv_sql-0.9.0.tar.gz",
"platform": null,
"description": "# pixiv-sql\n\n[![PyPI version](https://badge.fury.io/py/pixiv-sql.svg)](https://badge.fury.io/py/pixiv-sql)\n![build](https://github.com/ryohidaka/pixiv-sql/workflows/Build/badge.svg)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nPython library to backup pixiv user data to SQLite DB.\n\n## Installation\n\nYou can install this library using PyPI:\n\n```shell\npip install pixiv-sql\n```\n\n## Usage\n\n### Create dataBase file\n\n```bash\ntouch db/my_pixiv.db\n```\n\n### Get `refresh_token`\n\n> To get `refresh_token`, see\n> [@ZipFile Pixiv OAuth Flow](https://gist.github.com/ZipFile/c9ebedb224406f4f11845ab700124362)\n> or\n> [OAuth with Selenium/ChromeDriver](https://gist.github.com/upbit/6edda27cb1644e94183291109b8a5fde)\n\n### Initialize the PixivSQL class with your Pixiv user ID, refresh token, and database:\n\n```python\nuser_id = \"your_user_id\"\nrefresh_token = \"your_refresh_token\"\ndatabase = \"db/my_pixiv.db\"\n\napp = PixivSQL(user_id, refresh_token, database)\n```\n\n### You can then fetch your bookmarked illusts and insert them into the database:\n\n```python\napp.bookmarked_illusts()\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 \u65e5\u9ad8 \u51cc 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.",
"summary": "Python library to backup pixiv user data to SQLite DB.",
"version": "0.9.0",
"project_urls": {
"Changelog": "https://github.com/ryohidaka/blob/main/pixiv-sql/CHANGELOG.md",
"Homepage": "https://github.com/ryohidaka/pixiv-sql",
"Issues": "https://github.com/ryohidaka/pixiv-sql/issues",
"Repository": "https://github.com/ryohidaka/pixiv-sql"
},
"split_keywords": [
"pixiv"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8acc133c378974021d72f2e3692c91ea656f3b571292b5b0683d72cf75ea9686",
"md5": "faab5234c13521e2f465e79024ceb18a",
"sha256": "f510a789624f4bb8e33cf3dcc0325563e60701c4752646a0f843363956e29765"
},
"downloads": -1,
"filename": "pixiv_sql-0.9.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "faab5234c13521e2f465e79024ceb18a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 15895,
"upload_time": "2024-10-17T00:24:07",
"upload_time_iso_8601": "2024-10-17T00:24:07.631935Z",
"url": "https://files.pythonhosted.org/packages/8a/cc/133c378974021d72f2e3692c91ea656f3b571292b5b0683d72cf75ea9686/pixiv_sql-0.9.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c84c468319478376fae8b618f1570f3d5473db5b02236e6f261d8c68c249259d",
"md5": "ff255912998218982a160ac88e9c72ad",
"sha256": "4d5243a50a3eb9c2bf5b0e8f415141d0e3d63c033679186052a1d0689feef359"
},
"downloads": -1,
"filename": "pixiv_sql-0.9.0.tar.gz",
"has_sig": false,
"md5_digest": "ff255912998218982a160ac88e9c72ad",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 16092,
"upload_time": "2024-10-17T00:24:09",
"upload_time_iso_8601": "2024-10-17T00:24:09.233975Z",
"url": "https://files.pythonhosted.org/packages/c8/4c/468319478376fae8b618f1570f3d5473db5b02236e6f261d8c68c249259d/pixiv_sql-0.9.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-17 00:24:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ryohidaka",
"github_project": "blob",
"github_not_found": true,
"lcname": "pixiv-sql"
}