-
Notifications
You must be signed in to change notification settings - Fork 0
one-time use script for fixing Blogger link
License
lbgists/fix-yjlv-links
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a one-time use script to fix blog domain name change in my old Blogger blog for those internal links, that is one of post linking to another of the same Blogger blog. Basically, in fix.py newh = html.replace('***FROM***', '***TO***') It uses Blogger export file to get the posts and pages HTML and update via Blogger API, some codes are from my other projects b.py [1] and bea [2]. It should be used as follows: # ./fix.py --client-id $CLIEND_ID --client-secret $CLIENT_SECRET \ blog-MM-DD-YYYY.xml Two files are created: * blog-MM-DD-YYYY.xml.cache: cache file in JSON * fix.dat: authenticated credential for Blogger API The code is written in Python 3 and licensed under the MIT License. [1] https://bitbucket.org/lbarchive/b.py [2] https://bitbucket.org/lbarchive/bea
About
one-time use script for fixing Blogger link
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published