You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/blog.md
+54Lines changed: 54 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,60 @@ pageClass: routes
70
70
71
71
<RouteEnauthor="5upernova-heng"example="/macmenubar/recently/developer-apps,system-tools"path="/macmenubar/recently/:category?":paramsDesc="['Category path name, seperate by comma, default is all categories. Category path name can be found in url']"radar="1" />
The List ID is the last part of the URL after `-`, for example, the username in "https://medium.com/@imsingee/list/collection-7e67004f23f9" is `imsingee`, and the ID is `7e67004f23f9`.
80
+
81
+
::: warning Note
82
+
83
+
To access private lists, only self-hosting is supported.
Personalized recommendations require the cookie value after logging in, so only self-hosting is supported. See the configuration module on the deployment page for details.
Personalized recommendations require the cookie value after logging in, so only self-hosting is supported. See the configuration module on the deployment page for details.
There are many tags, which can be obtained by clicking on a tag from the homepage and looking at the URL. For example, if the URL is `https://medium.com/?tag=web3`, then the tag is `web3`.
118
+
119
+
::: warning Note
120
+
121
+
Personalized recommendations require the cookie value after logging in, so only self-hosting is supported. See the configuration module on the deployment page for details.
Copy file name to clipboardExpand all lines: docs/en/install/README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -758,6 +758,11 @@ See docs of the specified route and `lib/config.js` for detailed information.
758
758
- `MASTODON_API_ACCESS_TOKEN`: user access token
759
759
- `MASTODON_API_ACCT_DOMAIN`: acct domain for particular instance
760
760
761
+
- Medium related routes: Open the console, copy the cookie (in theory, only uid and sid are required)
762
+
763
+
- `MEDIUM_ARTICLE_COOKIE`: Cookie used when requesting the full article, can access the full text of paid content when there is an active Member subscription.
764
+
- `MEDIUM_COOKIE_{username}`: Cookie of the user corresponding to the username, required for personalized recommendation related routes.
Copy file name to clipboardExpand all lines: docs/en/joinus/debug.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,9 @@ sidebarDepth: 0
3
3
---
4
4
# Debugging
5
5
6
-
When debugging your code, you can use more than just `console.log` or attaching the node process to a debugger. Another option is to use `ctx.state.json` to provide a custom object for debugging.
6
+
When debugging your code, you can use more than just `console.log` or attaching the node process to a debugger. You can also use the following methods for debugging.
7
+
8
+
Note: The following methods are only effective when the instance is running with `debugInfo=true`.
7
9
8
10
## Using `ctx.state.json`
9
11
@@ -24,3 +26,9 @@ ctx.state.json = {
24
26
```
25
27
26
28
In the example above, we're passing the `info` object to `ctx.state.json`, which we can then access using the corresponding route + `.debug.json`.
29
+
30
+
## debug.html
31
+
32
+
In order to quickly test if the `description` in `ctx.state.data` is correct, you can use the `.debug.html` file suffix to obtain the HTML of the corresponding entry. The link can be directly opened in the browser to preview the rendering result.
33
+
34
+
Usage: Access the corresponding route + `.{index}.debug.html`, where `{index}` is the item number (starting from 0) in your `ctx.state.data.item`. And the data corresponds to the `ctx.state.data.item[index].description` information will be returned as route result.
- Apply filters or URL query - [https://rsshub.app/dribbble/popular.atom?filterout=Blue|Yellow|Black](https://rsshub.app/dribbble/popular.atom?filterout=Blue|Yellow|Black)
150
150
151
-
### Debug
151
+
### debug.json
152
152
153
153
If the RSSHub instance is running with `debugInfo=true` enabled, suffixing a route with `.debug.json` will result in the value of `ctx.state.json` being returned.
154
154
@@ -158,6 +158,15 @@ For example:
158
158
159
159
-`/furstar/characters/cn.debug.json`
160
160
161
+
### debug.html
162
+
163
+
By adding `.{index}.debug.html` (where `{index}` is a number starting from 0) at the end of the route and running the instance with `debugInfo=true`, RSSHub will return the content set in the plugin's `ctx.state.data.item[index].description`. You can access this page with a browser to quickly view the extracted information.
164
+
165
+
Example:
166
+
167
+
-`/furstar/characters/cn.0.debug.html`
168
+
169
+
161
170
## Brief introduction
162
171
163
172
Set the parameter `brief` to generate a brief pure-text introduction with a limited number of characters ( ≥ `100`).
0 commit comments