Difference between revisions of "Narrative Website Import"

From Gramps
Jump to: navigation, search
m ({{languages}})
m (clarify & reword)
Line 1: Line 1:
 
{{languages}}
 
{{languages}}
  
If you would like to turn a GRAMPS-created Narrative Website report and use it to restore your GRAMPS database, this code should give you a good starting point. You can find the code at [http://bubo.brynmawr.edu/~dblank/getnarrative.py getnarrative.py]. You can find some discussion of this code at http://www.nabble.com/Lost-grdb-tf4875942.html.
+
Use a '''GRAMPS-created Narrative Website report''' to restore your GRAMPS database.
  
The program works by parsing the HTML website (sometimes called "screen scrapping") and puts the data into a [[Gramps 3.0 Wiki Manual - Manage Family Trees: CSV Import and Export|comma-separated value spreadsheet]]. You can then import it directly into GRAMPS.
+
Use the following code [http://bubo.brynmawr.edu/~dblank/getnarrative.py getnarrative.py] as a good starting point.  
  
You run the program from the command line, with the URL of the surname list, like:
+
Read the following discussion about this code at http://www.nabble.com/Lost-grdb-td13952238.html
 +
 
 +
The program works by parsing the HTML website (also called "screen scrapping") and places the data into a [[Gramps 3.1 Wiki Manual - Manage Family Trees: CSV Import and Export|comma-separated value spreadsheet]]. You can then import it directly into GRAMPS.
 +
 
 +
To run the program from the command line, provide the URL of the surname list, like:
  
 
  python getnarrative.py http://somewebsite.com/myfamily/ > import.csv
 
  python getnarrative.py http://somewebsite.com/myfamily/ > import.csv

Revision as of 02:00, 13 June 2009

Use a GRAMPS-created Narrative Website report to restore your GRAMPS database.

Use the following code getnarrative.py as a good starting point.

Read the following discussion about this code at http://www.nabble.com/Lost-grdb-td13952238.html

The program works by parsing the HTML website (also called "screen scrapping") and places the data into a comma-separated value spreadsheet. You can then import it directly into GRAMPS.

To run the program from the command line, provide the URL of the surname list, like:

python getnarrative.py http://somewebsite.com/myfamily/ > import.csv

Then, in GRAMPS you should be able to import the file "import.csv" into an empty database.