Giter Site home page Giter Site logo

talk-wordpress-importer's Introduction

Tool for porting WordPress comments to Coral Talk.

This is written in Python because my patience with JavaScript was expiring. You need MySQLdb, pymongo and lxml.

This can be used to extract Disqus comments, but you must have had the WordPress Disqus plugin option which copies Disqus comments into WordPress' database enabled: this doesn't work retrospectively. You also don't get upvote records or many user account details.

There's a bit of a hack in here because WordPress comments don't have to be tied to a user account: we construct fake users based on the supplied username and email and disambiguate the usernames by appending variable quantities of zero-width space characters. (Look, I said it was a hack.) The default minimum number appended is 1, so none of the usernames are occupied in the database, so your existing users aren't prevented from registering on the new site. Alternatively you could attempt to do something to reunite them with their accounts.

talk-wordpress-importer's People

Contributors

sentynel avatar

Watchers

 avatar

talk-wordpress-importer's Issues

Posts with no comments should be added too

Otherwise they get added as soon as somebody browses to them, but when they get added they have a created_at date of the current time, rather than the publication_date, and then the admin control panel sorting looks weird.

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.