-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
希望支持来自Unsplash的壁纸 #276
Comments
+1,Unsplash的壁纸确实不错,免费而且质量高 |
我也一直用unspalsh 但是貌似没有找到合适的接口 |
Unsplash提供了开发者文档,需要注册以后获取Unsplash的Access Key,然后就可以使用Unsplash的api了 |
|
可以考虑,只是argon目前在做大的css重构,进行了一半,鸽子了好久。。。。 |
试了一下,可以直接curl 比如 得到一个这样的结果 <html><body>You are being <a href="https://images.unsplash.com/photo-1489176876421-3b720db0fb3d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHw1NjIwOTV8fHx8fHx8MTY2Mzc0MzczNw&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1080">redirected</a>.</body></html> 用sed处理一下,可以得到这种比较理想的链接: 大概这样 curl -sS "https://source.unsplash.com/collection/562095" \
| sed -E 's#^.*href=\"([^?]+)\?.*$#\1?fm=jpg\&w=1920\&h=1080#' |
目前只支持本地文件和bing壁纸,前几天bing挂了,就只能用本地文件。
Unsplash的图片允许免费使用,比如一个浏览器插件
Tabliss
在unsplash上的collection,也很漂亮The text was updated successfully, but these errors were encountered: