bebraw / blogger2ghost Goto Github PK
View Code? Open in Web Editor NEWBlogspot JSON migrator plugin for Ghost (MIT)
License: MIT License
Blogspot JSON migrator plugin for Ghost (MIT)
License: MIT License
The dateformat is in millis since epoch, but whatever version is running on ghost.io currently expects this format: yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
.
Awesome project right away. Made it very easy for me to import 268 posts from blog.publicobject.com into Ghost.
It seems the dependencies of this package require quite a few interesting dependencies. So far I've found:
But now I get a very useless error message about msbuild misbehaving. Sigh... Node on windows remains painful.
I'm trying to use the hosted service to import my blog (http://adverseconditionals.com) but it just redirects me to http://www.blogger2ghost.com/?error whenever I try to use it.
thanks
Hi,
The results comes with $t from blogger
here (search for $t)
http://bonimbayit.co.il/feeds/posts/default?alt=json&max-results=10000
or
http://ronbelson.blogspot.co.il/feeds/posts/default?alt=json&max-results=10000
The ERR:
Rons-MacBook-Air:wp2ghost ron$ blogger2ghost -i data.json > ghost.json
/usr/local/lib/node_modules/blogger2ghost/lib/convert.js:45
html = post.content['$t'],
^
TypeError: Cannot read property '$t' of undefined
at posts (/usr/local/lib/node_modules/blogger2ghost/lib/convert.js:45:32)
at Array.map (native)
at module.exports (/usr/local/lib/node_modules/blogger2ghost/lib/convert.js:42:51)
at runTask (/usr/local/lib/node_modules/blogger2ghost/index.js:50:18)
at /usr/local/lib/node_modules/blogger2ghost/index.js:42:13
at /usr/local/lib/node_modules/blogger2ghost/lib/load_json.js:12:9
at fs.js:271:14
at Object.oncomplete (fs.js:107:15)
R
When trying to create the JSON file, only the first 150 posts are imported from my Blogger site (adoptedbytheking.com). This appears to be related to the Blogger API's max post limit.
Re the blogger JSON: To get to the rest of the posts, I have to modify the JSON url to page through the data.
Perhaps, this tool could automatically page through the Blogger JSON API?
/usr/local/lib/node_modules/blogger2ghost/lib/convert.js:50
html.slice(0, 50) +
^
TypeError: Cannot call method 'slice' of undefined
at posts (/usr/local/lib/node_modules/blogger2ghost/lib/convert.js:50:22)
at Array.map (native)
at module.exports (/usr/local/lib/node_modules/blogger2ghost/lib/convert.js:44:51)
at runTask (/usr/local/lib/node_modules/blogger2ghost/index.js:52:18)
at /usr/local/lib/node_modules/blogger2ghost/index.js:44:13
at /usr/local/lib/node_modules/blogger2ghost/lib/load_json.js:12:9
at fs.js:272:14
at Object.oncomplete (fs.js:107:15)
During conversion, some content is getting jumbled and lost.
Source (blogger) post: http://www.adoptedbytheking.com/2015/11/read-in-november.html
Blogger HTML snippet:
<ul><li>
<a href="http://www.amazon.com/gp/product/006226835X">
Yes Please
</a>
, by Amy Poehler: I’m a huge <em>Parks and Recreation</em> fan,
so I was excited to read Amy’s memoir. It wasn’t my favorite book,
but I enjoyed it well enough.
</li></ul>
Expected Ghost Markdown:
* [Yes Please](http://www.amazon.com/gp/product/006226835X), by Amy Poehler: I’m a huge _Parks and Recreation_ fan, so I was excited to read Amy’s memoir. It wasn’t my favorite book, but I enjoyed it well enough.
Actual Ghost Markdown:
* , by Amy Poehler: I’m a huge _Parks and Recreation_[Yes Please](http://www.amazon.com/gp/product/006226835X)
When I imported the data, images have extra line break that makes that markdown render fails:
[![](http://url.com)
](http://urlimage.com)
should be:
[![](http://url.com)](http://urlimage.com)
I was using the online version of the tool, http://www.blogger2ghost.com/. I was experimenting at importing. I noticed the image links are broken. You can see what it looks like at, http://securitycurmudgeon-com.ghost.io/fortune_top_100_ciso_s_not_well_equipped_to_defend_software/. I noticed in the command line version of the tool has some additional capabilities. I may look into these features as well. Anyway, pretty cool tool!
The place to import the data has changed. It is now ghost/settings/labs
The tool really works great. It worked for me except for one issue that I resolved really easily.
I had these tags in my blogger: koç_uni
koc_uni
and koç_üni
When you generate slugs slugs of these tags are all koc_uni
without any international UTF-8 chars.
Slugs should be unique and Ghost didn't let me to import the posts. I changed the tags manually and re-imported.
Thank you.
Using the site http://www.blogger2ghost.com/
I attempted to export from http://archive.hackerferret.com and upload to http://hkferret.ghost.io
After attempting to upload my file I get this error repeatedly.
Duplicate Entry Found. Multiple values of " found for .
I've tried out http://blogger2ghost.com/ and it works great exporting/converting my posts, but when I go to import Ghost tells me "A problem was encountered while importing new content to your blog. Error: Failed to parse the import file."
I know this error message is extraordinarily unhelpful, so let me know if there's some way I can help debug this further. Here's a gist of the data I'm trying to import, if that helps.
I wonder if it has to do with the fact that I already have some posts on my blog; does the import need to be done on a fresh Ghost blog?
Would it be possible to bring i the georss information from blogger? Currently I do not see location as a fucntion of ghost but even adding a link to the end of the post would be helpful.
I haven't been able to find the correct way to build google maps urls using lat/long but the info for openstreetmaps is below:
Link using info from below:
Sierpe, Costa Rica
Explanation of Open street maps URL's:
http://wiki.openstreetmap.org/wiki/Browsing#Sharing_a_link_to_the_maps
http://www.openstreetmap.org/#map=[Zoom Level]/[Latitude]/[Longitude]&layers=[Layer code]
OSM url built with the lat/lon info from the blogger georss code:
http://www.openstreetmap.org/#map=13/8.866667/-83.46666700000003
Blogger GeoRss info from downloaded xml:
<georss:featurename>Sierpe, Costa Rica</georss:featurename><georss:point>8.866667 -83.46666700000003</georss:point><georss:box>-16.6553675 -124.77526100000003 34.388701499999996 -42.15807300000003</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8298740552129713314.post-9190001189685524919</id>
Hi,
I'm trying to use blogger2ghost tool, but when I try to import the json, it fails and shows me the following errors:
Value in [posts.title] cannot be blank.
Actually, there are 4 of those. Can you guess why?
When importing from Blogger to Ghost, the original Blogger permalinks are being lost.
/2015/12/green-light.html
/2015/12/green-light.html
/green_light/
Is it possible to keep the original permalink?
So this tool is great, it works out of the box.... but where are the images? There all gone?
Aren't they in the json (as a link to the old blog on Blogger) or does Ghost filter them out?
No images .... no going to ghost for me I guess
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.