Python Wrapper on top of Unofficial Medium API to quickly extract data from Medium's website (https://medium.com).
Install from PyPI
$ pip install medium-api
Getting a Medium user's information and fetching his articles.
from medium_api import Medium
medium = Medium('YOUR_RAPIDAPI_KEY')
user = medium.user(username="nishu-jain")
print(f'{user.fullname} has {user.followers_count} followers.')
user.fetch_articles()
for article in user.articles:
print(article.title)
For more examples, see Usage
Steps:
- Sign up on RapidAPI Platform
- Subscribe to our Unofficial Medium-API
- Click on any of API's Endpoints on the RapidAPI Hub listing <http://hub.mediumapi.com> and select the API key from the X-RapidAPI-Key header under App section.
For more detailed step by step guide, see:
Extract/Scrape/Fetch/Get:
- Medium User's information and User-written Articles
- Medium User's Followers and Following
- Medium User's Publications and Books
- Medium Articles information
- Medium Article's Textual Content and Markdown and HTML
- Medium Article's Responses/Comments
- Medium Publications information
- Medium Publication's Articles
- Medium Publication's Newsletter Info
- Medium's Top Writers
- Medium's Topfeeds (Trending, Latest, All time best, best of year/month/week)
- Medium's LatestPosts (distributed articles)
- Medium's Recommended Feed, Users and Lists
Full Documentation at https://medium-api.readthedocs.io
Medium REST API:
- Swagger Documentation: https://docs.mediumapi.com
Free software: MIT license
EULA: Terms of Use
In the interest of fostering an open and welcoming environment, all contributors, maintainers and users are expected to abide by the Python code of conduct: https://www.python.org/psf/codeofconduct/