A Python tool to export your following list from Iwara and Pixiv to OPML format, which can be imported into RSS readers. The RSS feeds are powered by RSSHub.
- Export Iwara following list to OPML format
- Export Pixiv following list to OPML format
- Compatible with any RSS reader that supports OPML import
- Powered by RSSHub for feed generation
- Python 3.8 or higher
- Git (optional but recommended)
# Create virtual environment
python -m venv venv
# Activate virtual environment
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
pip install -r requirements.txt
Note: If you don't have a requirements.txt file, you can install the packages individually:
pip install requests pixivpy3
python iwaraFollowing.py
The script will:
- Prompt for your Iwara credentials
- Fetch your following list
- Generate
iwara_following.opml
file
python pixivFollowing.py
The script will:
- Prompt for your Pixiv refresh token
- Fetch your following list
- Generate
pixiv_following.opml
file
For instructions on obtaining your Pixiv refresh token, please refer to this guide
After running the scripts, you'll get OPML files that can be imported into your RSS reader. Here's an example structure:
<opml version="1.0">
<head>
<title>Iwara Following</title>
</head>
<body>
<outline text="User1"
title="User1"
type="rss"
xmlUrl="https://rsshub.app/iwara/users/User1/videos"/>
</body>
</opml>
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature/YourFeatureName
) - Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature/YourFeatureName
) - Create a new Pull Request
Please make sure to follow our code of conduct.
A: Pixiv's API requires OAuth2 authentication, and the refresh token is used to obtain access tokens securely.
A: Yes, any RSS reader that supports OPML import should work.
A: We recommend updating it whenever you follow/unfollow users to keep your RSS feeds up-to-date.
For the previous version's instructions, please refer to the v1.0 README.
This project is licensed under the MIT License - see the LICENSE file for details.
将您在 Iwara 和 Pixiv 的关注列表导出为 OPML 格式,可导入至 RSS 阅读器。订阅源由 RSSHub 提供支持。
- 导出 Iwara 关注列表为 OPML 格式
- 导出 Pixiv 关注列表为 OPML 格式
- 兼容支持 OPML 导入的 RSS 阅读器
- 使用 RSSHub 生成订阅源
- Python 3.8 或更高版本
- Git(可选但推荐)
# 创建虚拟环境
python -m venv venv
# 激活虚拟环境
# Windows 系统:
venv\Scripts\activate
# macOS/Linux 系统:
source venv/bin/activate
pip install -r requirements.txt
注意:如果没有 requirements.txt 文件,可以单独安装所需包:
pip install requests pixivpy3
python iwaraFollowing.py
脚本将会:
- 提示输入 Iwara 账号信息
- 获取关注列表
- 生成
iwara_following.opml
文件
python pixivFollowing.py
脚本将会:
- 提示输入 Pixiv refresh token
- 获取关注列表
- 生成
pixiv_following.opml
文件
如何获取 Pixiv refresh token 可以阅读这篇文章
运行脚本后,您将获得可以导入 RSS 阅读器的 OPML 文件。以下是一个示例结构:
<opml version="1.0">
<head>
<title>Iwara 关注列表</title>
</head>
<body>
<outline text="用户1"
title="用户1"
type="rss"
xmlUrl="https://rsshub.app/iwara/users/用户1/videos"/>
</body>
</opml>
欢迎贡献代码!请按照以下步骤进行:
- Fork 本仓库
- 创建新分支 (
git checkout -b feature/你的功能名称
) - 提交更改 (
git commit -m '添加新功能'
) - 推送分支 (
git push origin feature/你的功能名称
) - 创建 Pull Request
请确保遵守我们的行为准则。
A: Pixiv 的 API 需要 OAuth2 认证,refresh token 用于安全地获取访问令牌。
A: 可以,任何支持 OPML 导入的 RSS 阅读器都可以使用。
A: 建议在关注/取消关注用户时更新,以保持 RSS 订阅源的最新状态。
查看旧版本使用方法请参考 v1.0 说明文档。
本项目采用 MIT 许可证 - 详情请参阅 LICENSE 文件。