[Tutor] Bulk Import Script Help Please

Alan Gauld alan.gauld at btinternet.com
Wed Nov 16 13:16:39 CET 2011


On 10/11/11 17:10, Amir wrote:

>> I am new to python, and I need to bulk import a csv data dump into our
>> content management system, Equella.

OK, we can definitely help with the Python, the Equella bit will likely 
need a more specialised forum.

What is your background? Can you already program in any other language? 
If so, which?

What OS are you using? What Python version do you have?
What tutorial are you following, if any?

All of these answers can help us focus our responses.

>> I need to bulk import the CSV file dump into Equella to create a
>> Taxonomy using a Python script.

OK, That needs more explanation too.
What do you mean by a csv file dump? One large file or a folder full of 
files or a zip/tar file full of csvb files?

And what kind of taxonomy do you mean? Is it one containing the data 
from the csv files or is it a taxonomy of csv files?
And what is the taxonomy structure based on - is it part of Equilla?
Or are you using a 3rd party tool, if so which?

>> I have the csv file, the API details for bulk import and Admin access
>> to the Equella Taxonomy console;

OK, this suggests a single csv file, an API into Equilla and that the 
taxonomy is part of Equllla? Is that correct?

If so the first thing to do is learn how to open and read the csv file.
You should be able to do that easily using the csv module in the 
standard Python library. Is that enough of a starter? If not what extra 
information do you need? The more specific you make your questions, the 
more specific we can make our answers.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list