This project helps to bulk upload files to internet archive.
install python3
Then install the python library "internetarchive"
python3 -m pip install internetarchive
check here https://archive.org/developers/internetarchive/ for more details.
configure ia
ia configure
It will ask for your credentials for archive.org give them and ensure the config is saved.
- copy all the files you want upload to a specific folder
- copy the files get_all_filenames.py and ia-bulk-upload.py to that folder
- Run the command
python3 get_all_filenames.py
This will create file called files_list.csv with all the file names in the current folder
- Create a CSV file, metadata.csv with below fields, using libreoffice calc, or MS excel or google sheets.
file,identifier,title,alt_title,creator,alt_creator,publisher,alt_publisher,year,source,description,collection,license,language,mediatype,subject
-
copy the contents from files_list.csv and paste in the "file" column.
-
Fill title with original name of the item. This can be in native language or english
-
Fill alt_title with an english title. Must be in english
-
leave the identifier as empty
-
Fill other columns.
-
The manditory fields are title, alt_title, creator, language
-
The more info you give, the more good.
-
if you need to give multiple values for author or subjects, seperate them with ;
-
Then run the below command
python3 ia-bulk-upload.py
This will upload all the files to archive.org
On completion, the file will be moved to a folder "success_folder" On error, the file will be moved to "error_folder" or kept on current folder.
General Public License V3