Urgent.News

What's breaking now, across thousands of outlets.

Tech

How I Wired Up Fully-Automated Cross-Posting Between Blogger and dev.to (With Working Code)

The last two posts on this blog went out through a pipeline I built specifically so I wouldn't have to manually copy-paste content between platforms. Here's the actual setup, in case you're trying to do the same thing. The goal One command, two platforms: publish to Blogger (where this blog actually lives) and have it show up on dev.to at the same time, without dev.to's copy counting against the…

A system was designed to automatically post content simultaneously to two blogging platforms without duplicating the original source material. Blogger's API was utilized for the first platform, requiring a browser login to obtain a refresh token for authentication. Dev.to was accessed through its own REST API, which required a personal API key for authentication.

The canonical URL of the dev.to post was set to point back to the original Blogger post, which helped prevent search engines from considering both posts as duplicate content. A publish script handled the process, first posting to Blogger, then immediately posting the same content to dev.to with the Blogger URL as the canonical URL.

This method allowed for one command to publish to both platforms, avoiding manual copy-paste and reducing the chance of forgetting to update one platform after editing the other. If using Markdown instead of HTML in the future, the script would need to be adjusted to accommodate dev.to's preferred native format.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Kernel prepatch 7.2-rc7

The 7.2-rc7 kernel prepatch is out for testing. It is still bigger than Linus would like, but he said nonetheless: " I don't currently see any value in delaying the 7.2 release, so I would expect that…

Pytest Built-in Fixtures

As I've been onboarding to my new position, I've been reviewing some of my coworker's code. I learned that pytest 1) has some built-in fixtures, and 2) they are really useful!

Apple tests Chinese memory chips

Apple is testing memory chips from China’s CXMT across its product lines, including iPhones and MacBooks, as global tech reckons with an AI-induced memory shortage.

GitHub Models is now retired

GitHub Models is now retired I missed this news until today, when the GitHub Actions run for my simonw/research repository failed with this error message: GitHub Models is temporarily unavailable as…

  • GitHub Models, model playground tool, retired
  • Announced via GitHub Actions failure message
  • Speculated cost of free tokens led to shutdown

More from Sunday 9 August →