Save theme of Google Blogger from Node.js
npm install --save blogger-save-theme
const blogger = require('blogger-save-theme')
const theme = `<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html>
<head>
<title><data:blog.pageTitle/></title>
<b:skin></b:skin>
</head>
<body>
<b:section id='header' />
</body>
</html>`
blogger({
blogID: '4207593430912310415',
theme,
xGWTPermutation: 'code',
xsrf: 'code',
cookie: {
HSID: 'value from Blogger cookie',
SID: 'value from Blogger cookie',
SSID: 'value from Blogger cookie'
}
}).then(res => {
const { error, result } = res
})
Type: Object
Type: string
Id of the blogger. Get from url of you blog config (https://www.blogger.com/blogger.g#welcome
)
Type: string
The xml
theme.
Type: string
Value of security, get from https://www.blogger.com/blogger.g?blogID=BLOGGER-ID#templatehtml
edit you theme code and in Chrome press F12 select Network tab and push "Save theme" button, the first request show x-gwt-permutation
value in "Request Headers"
Type: string
Value of security, get from https://www.blogger.com/blogger.g?blogID=BLOGGER-ID#templatehtml
edit you theme code and in Chrome press F12 select Network tab and push "Save theme" button, the first request show xsrf
value in "Request Payload"
Type: Object
HSID
, SID
, SSID
values from Blogger cookies
- gulp-blogger-save-theme - gulp plugin
- blogger-html-preview - Get output code preview of Google Blogger
- gulp-blogger-html-preview - gulp plugin
MIT © Jesus Lobos