Difference between revisions of "Narrative Website Import"

From Gramps
Jump to: navigation, search
(pre)
(clean up)
Line 1: Line 1:
 
{{languages}}
 
{{languages}}
  
Use a '''GRAMPS-created Narrative Website report''' to restore your GRAMPS database.
+
Use a '''Gramps-created Narrative Website report''' to restore your Gramps database.
  
Use the following code [http://bubo.brynmawr.edu/~dblank/getnarrative.py getnarrative.py] as a good starting point (As the Script was written for
+
Use the following code [http://bubo.brynmawr.edu/~dblank/getnarrative.py getnarrative.py] as a good starting point (As the Script was written for Gramps 2.2 NarrativeWeb and needs to be updated to work with Gramps 3.3)
Gramps 2.2 NarrativeWeb and needs to be updated to work with Gramps 3.3)
 
  
Read the following discussion about this code at [http://www.nabble.com/Lost-grdb-td13952238.html link no longer works] try here [http://comments.gmane.org/gmane.comp.genealogy.gramps.user/4986 Lost grdb] & [http://gramps.1791082.n4.nabble.com/Re-return-from-NAVWEB-to-GRAMPS-and-NOT-HIDE-td3780312.html#a3780390]
+
Read the following discussion about this code at [http://comments.gmane.org/gmane.comp.genealogy.gramps.user/4986 Lost grdb] & [http://gramps.1791082.n4.nabble.com/Re-return-from-NAVWEB-to-GRAMPS-and-NOT-HIDE-td3780312.html#a3780390]
  
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.
+
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:
 
To run the program from the command line, provide the URL of the surname list, like:
Line 14: Line 13:
 
  python getnarrative.py http://somewebsite.com/myfamily/ > import.csv
 
  python getnarrative.py http://somewebsite.com/myfamily/ > import.csv
 
</pre>
 
</pre>
Then, in GRAMPS you should be able to import the file "import.csv" into an empty database.
+
Then, in Gramps you should be able to import the file "import.csv" into an empty database.
 
<!--
 
<!--
 
<pre>
 
<pre>

Revision as of 00:03, 19 September 2014

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

Use the following code getnarrative.py as a good starting point (As the Script was written for Gramps 2.2 NarrativeWeb and needs to be updated to work with Gramps 3.3)

Read the following discussion about this code at Lost grdb & [1]

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.