GithubHelp home page GithubHelp logo

benward / tumblr2wordpress Goto Github PK

View Code? Open in Web Editor NEW
60.0 60.0 18.0 443 KB

A single-page PHP script to export all public posts from a Tumblr account and export them as Wordpress extended RSS. (Enhancement fork of Hao Chen's Tumblr2Wordpress.)

Home Page: http://tumblr2wordpress.benapps.net/

PHP 100.00%

tumblr2wordpress's Introduction

viewsource://benward.uk

This repo is my personal site, all of it. Everything you can see already in public already at benward.uk is here in raw form, such that you might learn from it.

The site is built statically, using Jekyll, and all of that is inside the /jekyll subdirectory. There's templates, configuration, a rudimentary Rakefile for some basic post operations, and a directory of scrappy hacks that augment the standard Jekyll gem. They're not documented yet, and they really need to be broken out into separate gems in their own right, but one advantage of a static site generator is that there's a low cost to unoptimised, hacky code when all you're trying to do is relaunch your blog. Anyway, please learn from it, or teach me things, too.

Licensing

This repo contains mixed content.

  • Any text file ending in a .css, .md, .html, or .textile extension, and binary files, are by default Copyright All Rights Reserved by me, Ben Ward. These are the design elements, pages, and articles published on my site, and you need my permission to reproduce them. By all means, ask.
  • Ruby code, YAML configurations and Liquid templates (which are the .html files contained within the _layouts directory) are free for you to use however you wish. A line of attribution would be lovely, but do whatever's appropriate.

If you clone the repo to work with your own Jekyll set-up, please erase the _posts directory and use your own stub content. That way no-one has any accidental publishing accidents.

Enjoy!

Plugin code really does need a refactor, but if they help you learn a little about how Jekyll's internals work, or how to augment them with Ruby, then that's all for the better.

Ben https://benward.uk

tumblr2wordpress's People

Contributors

barchard avatar benward avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tumblr2wordpress's Issues

Support multiple photos per post

The script pre-dates Tumblr's support for multiple photographs per-post, and so only imports the first picture. Need to check for multiple photographs and output them as a list.

AFter importing all posts have the same id

After importing when i go to edit articles all the articles have the same edit ID so i can't edit and change date s or else.

is there a solution to that? have tried to empty all the tables and so on, but no luck. does wordpress save a file to remember as it is always the same id that comes up.

thanks for a great tool. that had worked for me before.

Tumblr post_id's have exceeded PHP's 32-bit integer maximum

As of mid-December, Tumblr's post ID has exceeded PHP's 32-bit integer maximum. Not necessarily Tumblr2Wordpress' issue, but rather the Wordpress Importer's problem. (I've posted a note over there: http://wordpress.org/support/topic/plugin-wordpress-importer-importer-fails-for-post_ids-over-php_int_max-of-2147483647?replies=1#post-1943626)

The Wordpress Importer plugin attempts to forcibly convert (using (int)) the post_id into an integer, which, beyond PHP_INT_MAX always returns 2147483647.

Mayhem ensures.

Wordpress Importer is definitely in the wrong here, but until that is fixed (or you are running T2W on a 64-bit system), you are going to have problems. Perhaps an option in T2W to set the post_id to start from 1 and increment? Rewriting would suffer a bit, but ah well...

Support for Wordpress Post Formats

Wordpress now supports Post formats. It would be best if the converter could map corresponding Tumblr post type to appropriate post format. Please do look into that.

Refactor Tumblr rendering

The Tumblr HTML rendering code is shared between this and the Tumblfeed project I run. It would make a hell of a lot of sense to break out the pieces of code that render Tumblr content to HTML and share it between the two.

This would also be a good opportunity to refactor the entire thing.

Error fetching Tumblr posts

Receiving error:

"Error fetching Tumblr posts
String could not be parsed as XML
950 posts fetched"

I successfully transferred a Tumblr blog over to Wordpress with about 6000 posts 2 weeks ago, but now I receive the error above.

The tumblr blog I've been trying to transfer is http://maryrambin.tumblr.com/

Create Disqus URL mapping export file plugin for WordPress

Disqus supports mapping old URLs to new URLs. The old Tumblr URL is preserved in the WordPress permalink field, so exporting it all will be very simple after the mosts have been imported and in the WordPress environement where the URLs are actually generated.

Error fetching Tumblr posts

Hi Ben,

Thanks for this script but unfortunately it does not seem to be working for me. Can you advise? My blog is at jakelevine.tumblr.com

Best,
Jake

My error:
Error fetching Tumblr posts
String could not be parsed as XML 200 posts fetched

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.