mkrisher / typepad-import

rake task to import typepad posts into local database

This URL has Read+Write access

typepad-import / README
100644 48 lines (32 sloc) 1.437 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Typepad Import Rake task for Rails
Release Notes
Revised: 03/19/09 Release 1
Mike Krisher
mike@mikekrisher.com
 
Git: git://github.com/mkrisher/typepad-import.git
 
-------------------------------------------
CHANGELOG:
 
03/19/09: R1
 
- task will now accept url from a config or prompt, will parse the feed
adding entries to the database table. While doing so it will fix the
typepad links and make them relative, as well as pull in local copies
of embedded images and change the paths in the content to be local.
 
 
03/18/09: PR2
 
- task will now accept a url and parse the feed, adding entries to the
database table. Just needs some content massaging
 
03/17/09: PR1
 
- starting the rake task to import data from Typepad feed
 
-------------------------------------------
Description:
 
- this rake task will ask the user for a Typepad feed URL and
will import that feed into a local database table. Can be used
for archiving, legacy data use in new Rails app, etc...
 
-------------------------------------------
Usage:
 
- the task has a couple of dependencies. the first is the database table.
1) run rake db:migrate
 
the task writes images to the /public/images directory if there are any
images embedded in posts. when writing the local copy, links are updated
to reference the local paths. in addition to the images, permalinks are
rewritten as well to be relative.
2) be sure to add routes for /:year/:month/:link