API key for thingiverse
````
-## Warning
-Currently downloading individual things by ID is broken. This should be fixed soon.
-
## API KEYs
Thingy_grabber v0.10.0 accesses thingiverse in a _substantially_ different way to before. The plus side is it should be more reliable, possibly faster and no longer needs selenium or a firefox instance (and so drastically reduces memory overhead). The downside is you are _going_ to have to do something to continue using the app - basically get yourself an API KEY.
- If there is an updated file, the old directory will be moved to `name_timestamp` where `timestamp` is the last upload time of the old files. The code will then copy unchanged files across and download any new ones.
## Changelog
+* v0.10.3
+ - Handle trailing whitespace in thing names
+ - Fix raw thing grabbing
* v0.10.2
- Fixed regression in rest API
* v0.10.1
MAX_PATH_LENGTH = 250
-VERSION = "0.10.2"
+VERSION = "0.10.3"
TIMESTAMP_FILE = "timestamp.txt"
value = unicodedata.normalize('NFKC', value).lower().strip()
value = re.sub(r'[\\/<>:?*|"]', '', value)
value = re.sub(r'\.*$', '', value)
- return value
+ return value.strip()
class Downloader(multiprocessing.Process):
logging.debug("Generating download_dir")
os.mkdir(self.download_dir)
filelist_file = os.path.join(self.download_dir, "filelist.txt")
+ logging.error("\nd:{}\nf:{}".format(self.download_dir, filelist_file))
with open(filelist_file, 'w', encoding="utf-8") as fl_handle:
for fl in self._file_links:
fl_handle.write("{},{},{}\n".format(fl.link, fl.name, fl.last_update))