vfrico / fontsquirrel_dl Goto Github PK
View Code? Open in Web Editor NEWPython tools to download fonts from FontSquirrel
Python tools to download fonts from FontSquirrel
I am trying to use fs.get_all_families(target_directory)
. It stops after a few downloaded fonts:
Python 3.7.3 (default, May 25 2019, 04:51:33)
[GCC 7.3.0] on haiku1
fs = fontsquirrel.FontSquirrel()
fs.get_all_families("fontsdir/")
(...)
INFO:root:Downloading zip from http://www.fontsquirrel.com/fonts/download/After-Shok
INFO:root:Downloading zip from http://www.fontsquirrel.com/fonts/download/agane
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/boot/home/fontsquirrel_dl-master/fontsquirrel.py", line 198, in get_all_families
zip_file.extract(filename, path=dest+url_name)
File "/packages/python3-3.7.3-2/.self/lib/python3.7/zipfile.py", line 1599, in extract
return self._extract_member(member, path, pwd)
File "/packages/python3-3.7.3-2/.self/lib/python3.7/zipfile.py", line 1638, in _extract_member
member = self.getinfo(member)
File "/packages/python3-3.7.3-2/.self/lib/python3.7/zipfile.py", line 1395, in getinfo
'There is no item named %r in the archive' % name)
KeyError: "There is no item named 'Aganè 45 (light).ttf' in the archive"
It should should continue if errors are occuring.
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import fontsquirrel
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "fontsquirrel.py", line 30, in <module>
import urllib.request
ImportError: No module named request
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.