Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ZhgChgLi/ZMediumToMarkdown
Browse files Browse the repository at this point in the history
  • Loading branch information
app-harry committed Aug 15, 2024
2 parents 3849756 + ee2e71b commit 1044ce0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ This project can help you create an auto-sync or auto-backup service from Medium
- [x] Highly optimized markdown format for Medium
- [x] Native Markdown-style Render Engine
(Feel free to contribute if you have any optimization ideas! MarkupStyleRender.rb)
- [x] **Supports paywall posts.** (Requires providing valid Medium Member cookies)
- [x] Jekyll and social share (og: tag) friendly
- [x] 100% Ruby @ RubyGem

Expand Down Expand Up @@ -99,6 +100,26 @@ ZMediumToMarkdown -c
ZMediumToMarkdown -v
```

**Provide valid Medium Member cookies to access paywall posts**
ZMediumToMarkdown requires uid and sid cookies to access paywalled posts on Medium.

If you don’t provide valid Medium Member cookies, you will receive this warning message while downloading a Medium post if the post is behind a paywall:
> This post is behind Medium's paywall. You must provide valid Medium Member login cookies to download the full post.
```
ZMediumToMarkdown --cookie_uid uid --cookie_sid sid
```

You can obtain `cookie_uid` and `cookie_sid` from Medium by following these steps:
1. Log in to a valid Medium Member account.
2. Right-click anywhere on the Medium webpage.
3. Select "Inspect" to open the Developer Tools.
4. Navigate to the "Application" tab and locate the `sid` and `uid` values under "Cookies."

![ZhgChgLi-2024-08-11_22-30-03](https://github.com/user-attachments/assets/35229d1d-501a-4ecf-8f3e-592a02416bb1)



#### For Jeklly Dir Friendly

**Downloading all posts from user with Jekyll friendly**
Expand Down

0 comments on commit 1044ce0

Please sign in to comment.