Round Up Little To-Do Projects to Knock Out Fast
by Mike Levin
Friday, January 27, 2023Lets work our way through every side-project while ChatGPT is still free. Round up my content from around the web and make a version on my own website. Whether or not you publish (re-publish) it.
- Hitting Twitter API (done)
- Hitting Instapaper API
- Making RSS feed on my blog
How do I get all my Instapaper content with Python?
You can use the Instapaper API to retrieve your content from Instapaper using Python. Here are the basic steps:
- Sign up for an API key from Instapaper.
- Install the requests library in Python.
- Use the requests library to make a GET request to the Instapaper API to retrieve your content.
- Parse the response in json format to extract the content you need.
- If you are using the OAuth authentication for Instapaper API, you will need to pass your OAuth token and secret along with your request.
Here is an example of how you can use the requests library to retrieve your Instapaper content:
import requests
# Set up authentication
api_key = "YOUR_API_KEY"
# Make the request
response = requests.get("https://www.instapaper.com/api/1/bookmarks/list", auth=(api_key, ""))
# Parse the response
data = response.json()
# Extract the content
for item in data["bookmarks"]:
print(item["url"])
Okay, so I’ve got Instapaper documented.