feat(route): instagram from cookie (#11952)

* feat(route): instagram 2

* docs: add docs

* fix: get tabs

* docs: fix tag
This commit is contained in:
Tony
2023-02-25 15:12:06 +08:00
committed by GitHub
parent a7cbbf559b
commit 68e972464c
11 changed files with 259 additions and 71 deletions
+4 -3
View File
@@ -677,9 +677,10 @@ See docs of the specified route and `lib/config.js` for detailed information.
- Instagram:
- `IG_USERNAME`: Your Instagram username
- `IG_PASSWORD`: Your Instagram password
- `IG_PROXY`: Proxy URL for Instagram
- `IG_USERNAME`: Your Instagram username (Private API only)
- `IG_PASSWORD`: Your Instagram password (Private API only)
- `IG_PROXY`: Proxy URL for Instagram (Private API only, optional)
- `IG_COOKIE`: Your Instagram cookie (Cookie only)
Warning: Two Factor Authentication is **not** supported.
+8 -4
View File
@@ -148,15 +148,15 @@ Type
::: warning
Due to Instagram API restrictions, you have to setup your credentials on the server. See deployment guide for more.
Due to Instagram Private API restrictions, you have to setup your credentials on the server. 2FA is not supported. See [deployment guide](https://docs.rsshub.app/en/install/) for more.
If you don't want to setup credentials, use Picuki.
If you don't want to setup credentials, you can use [Picuki](#picuki).
:::
### User Profile / Hashtag
### User Profile / Hashtag - Private API
<RouteEn author="oppilate DIYgod" example="/instagram/user/stefaniejoosten" path="/instagram/:category/:key" :paramsDesc="['Feed category, see table below','Username / Hashtag name']" radar="1" anticrawler="1">
<RouteEn author="oppilate DIYgod" example="/instagram/user/stefaniejoosten" path="/instagram/:category/:key" :paramsDesc="['Feed category, see table below','Username / Hashtag name']" radar="1" anticrawler="1" selfhost="1">
| User timeline | Hashtag |
| ---------- | ---- |
@@ -168,6 +168,10 @@ It's highly recommended to deploy with Redis cache enabled.
</RouteEn>
### User Profile / Hashtag - Cookie
<RouteEn author="TonyRL" example="/instagram/2/user/stefaniejoosten" path="/instagram/2/:category/:key" :paramsDesc="['Feed category, see table above','Username / Hashtag name']" radar="1" anticrawler="1" selfhost="1" />
## Lofter
### User
+4 -3
View File
@@ -712,9 +712,10 @@ RSSHub 支持使用访问密钥 / 码,白名单和黑名单三种方式进行
- Instagram:
- `IG_USERNAME`: Instagram 用户名。
- `IG_PASSWORD`: Instagram 密码。
- `IG_PROXY`: Instagram 代理 URL。
- `IG_USERNAME`: Instagram 用户名(仅 Private API)
- `IG_PASSWORD`: Instagram 密码(仅 Private API)
- `IG_PROXY`: Instagram 代理 URL(仅 Private API,可选)
- `IG_COOKIE`: Instagram 登录后的 Cookie(仅 Cookie)
注意,暂**不支持**两步验证。
+7 -3
View File
@@ -488,13 +488,13 @@ Tiny Tiny RSS 会给所有 iframe 元素添加 `sandbox="allow-scripts"` 属性
::: warning 注意
由于 Instagram API 限制,必须在服务器上设置你的用户名和密码。暂不支持两步验证。步骤见部署指南。
由于 Instagram Private API 限制,必须在服务器上设置你的用户名和密码。暂不支持两步验证。步骤见[部署指南](https://docs.rsshub.app/install/)。
如需无登录的 feed,请用 Picuki。
如需无登录的 feed,请用 [Picuki](#picuki)。
:::
### 用户 / 标签
### 用户 / 标签 - Private API
<Route author="oppilate DIYgod" example="/instagram/user/stefaniejoosten" path="/instagram/:category/:key" :paramsDesc="['类别,见下表', '用户名/标签名']" radar="1" anticrawler="1" radar="1">
@@ -508,6 +508,10 @@ Tiny Tiny RSS 会给所有 iframe 元素添加 `sandbox="allow-scripts"` 属性
</Route>
### 用户 / 标签 - Cookie
<Route author="TonyRL" example="/instagram/2/user/stefaniejoosten" path="/instagram/2/:category/:key" :paramsDesc="['类别,见上表', '用户名/标签名']" radar="1" anticrawler="1" selfhost="1" />
## Keep
### 运动日记