Turn blog posts into LinkedIn content

Transforms your blog posts into LinkedIn-ready content

What you will receive

LinkedIn Post Ready

just now

Your LinkedIn post is ready:

I spent 6 months rewriting our authentication system.

Here's what I learned:

→ Session tokens aren't the enemy—complexity is
→ Most "security best practices" are cargo cult
→ Users don't care about your architecture

The real insight? Simple systems are more secure.

Read the full breakdown: [link]

---
Based on: "Authentication Done Right"
Copy and post →

How it works

  1. 1Humrun fetches your latest blog post from your RSS feed
  2. 2AI transforms it into LinkedIn-friendly format
  3. 3You get ready-to-post content in your inbox

You configure

https://yourblog.com/feed.xml

The RSS feed URL of your blog

sk-...

For generating LinkedIn content

View Python code
import requests
import feedparser
import os

BLOG_RSS_URL = os.environ.get("BLOG_RSS_URL")
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")

# Fetch the latest post
feed = feedparser.parse(BLOG_RSS_URL)

if not feed.entries:
    print("No posts found in feed")
else:
    post = feed.entries[0]
    title = post.get("title", "Untitled")
    content = post.get("summary", post.get("description", ""))
    link = post.get("link", BLOG_RSS_URL)

    # Generate LinkedIn post
    prompt = f"""Transform this blog post into a LinkedIn post.

Title: {title}
Content: {content[:2000]}
Link: {link}

Guidelines:
- Start with a hook (surprising statement or question)
- Use short paragraphs and line breaks
- Include 3-5 bullet points or takeaways with arrows (→)
- End with a call to read the full post
- Keep it under 200 words
- No hashtags, no emojis
- Professional but not corporate"""

    response = requests.post(
        "https://api.openai.com/v1/chat/completions",
        headers={"Authorization": f"Bearer {OPENAI_API_KEY}"},
        json={
            "model": "gpt-4o-mini",
            "messages": [{"role": "user", "content": prompt}],
            "max_tokens": 400
        }
    )

    linkedin_post = response.json()["choices"][0]["message"]["content"]

    print("LinkedIn Post Ready\n")
    print(linkedin_post)
    print(f"\n---\nBased on: {title}")
    print(f"Link: {link}")
Suggested schedule: Every week on MondayNotifications: After every run
Browse more templates