Skip to content

Parser that collect photos and info from discogs and putting it to CSV file that can be imported at WooCommerce

Notifications You must be signed in to change notification settings

Tosha1409/Discogs_to_Woocommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

Discogs_to_Woocommerce

Parser that collect photos and info from Discogs and putting it to CSV file that can be imported to WooCommerce. It doesnt handle (at least yet) 100% of info that included at discogs. But parse correctly over 99% of items and all pictures and that can save many hours of work. Beside that it is hard to make 100% universal versions for all needs, because discogs info structure and different needs for every case.
at OOP folder you can find object version of script(not perfect either).

and here is how to use script:

  1. If you run it not under windows then remove line 3, and win_unicode_console from first line.
  2. Get discogs tokken for your acccount (more info/place to request https://www.discogs.com/developers/ ).
  3. Edit variables/setting at script that you want to change.
  4. Run and get your CSV file.

and OOP folder includes:
date_folder.py - function that create date folders in Wordpress/WooCommerce.
parser_classes.py - classes.
discogs_parser.py - function for parsing items that have particular(or higher) item ID. It works pretty slowly because it is goes through all items, but it is still many times faster then make it manually. Unfortuantely, discogs is great webpage, but Discogs API is not that good as page itself, and documentation is even worse (if you check any resourse online that you can see it easily). And it makes development too complicated.
parser.py - command line version of parser. Parses all items if it is runned without parameters, otherwise takes first item ID as parameter.
parser_gui.py - GUI(tkinter) version of parser.

let me know if you have any questions.

Releases

No releases published

Packages

No packages published

Languages