projects:digikey_partsdb
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| projects:digikey_partsdb [2013/10/12 10:47] – charliex | projects:digikey_partsdb [2013/10/13 10:11] (current) – charliex | ||
|---|---|---|---|
| Line 888: | Line 888: | ||
| curl with a valid useragent i used --useragent " | curl with a valid useragent i used --useragent " | ||
| + | |||
| + | < | ||
| + | curl.exe -o page%1.csv -L -v -G " | ||
| + | </ | ||
| + | |||
| + | |||
| The response has 4 bytes at the front we don't want, so a simple byteskip script or piece of code. | The response has 4 bytes at the front we don't want, so a simple byteskip script or piece of code. | ||
| Line 995: | Line 1001: | ||
| for %a in (*.csv) do byteskip %a o%a 4 | for %a in (*.csv) do byteskip %a o%a 4 | ||
| </ | </ | ||
| + | |||
| + | I used one of the online CSV to MYSQL converters, but most of them can't handle the variations in CSV. To create the initial schema for each table i converted one CSV to XLS by importing it into google docs, and then re-exporting it as an XLS then importing that into phpmyadmin, that makes the base schema.< | ||
| + | |||
| + | Rename the table in phpmyadmin or via mysql tool | ||
| + | |||
| + | Then do the final import with the csvtosql tool, (in progress) | ||
| + | |||
projects/digikey_partsdb.1381600065.txt.gz · Last modified: by charliex
