Python Wrapper on top of Medium API to quickly extract data from https://medium.com.
Project description
Python Wrapper on top of Medium API (by Nishu Jain) to quickly extract data from Medium’s website (https://medium.com).
Installation
Install from PyPI
$ pip install medium-api
Dependency: ujson
Example
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} followers.')
user.fetch_articles()
for article in user.articles:
print(article.title)
For more examples, see Usage
How to get your RapidAPI Key
Steps:
Sign up on RapidAPI Platform
Subscribe to Medium-API
Go to the API’s Endpoints tab on the RapidAPI Hub listing and select the API key from the X-RapidAPI-Key dropdown under Header Parameters section.
For more details, see the following links:
Features
Extract/Scrape/Fetch/Get:
Medium User information and user-written articles
Medium Articles information and their textual content
Medium Publications information
Medium’s Top Writers
Medium’s Topfeeds (Trending, Latest, All time best, best of year/month/week)
Medium’s LatestPosts (distributed articles)
Documentation
Full Documentation at https://medium-api.readthedocs.io
Other Materials
Medium REST API:
Swagger Documentation: https://weeping-angel.github.io/medium-api
Related REST API Articles:
Miscellaneous Articles:
License
Free software: MIT license
EULA: Terms of Use
Code of Conduct
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/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for medium_api-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd022ccad091e760570b5a8059ffb73188922902125edc3dd4fe6f5bff55392f |
|
MD5 | 0a7a3acdde5c212270ab2f756133fa4c |
|
BLAKE2b-256 | ac0c797c8a4eadae17236510d1f78ece87e05afb9f903977b79ca4fd403d3e2d |