ctrl-b / wallcatd Goto Github PK
View Code? Open in Web Editor NEWPictures of the day for your desktop and lockscreen using wallcat
Pictures of the day for your desktop and lockscreen using wallcat
Hey,
loving this script; running it everywhere. As of today (?) The download fails:
biest:~/bin/wallcatd> python3.7 wallcatd.py
Traceback (most recent call last):
File "wallcatd.py", line 74, in <module>
downloadpotd(today[0],today[2])
File "wallcatd.py", line 29, in downloadpotd
with urllib.request.urlopen(image) as response, open(path, 'wb') as out_file:
File "/usr/lib64/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib64/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib64/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib64/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/lib64/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
Could you update the sources to fix the url again? Thanks! :)
Hey,
for like 1 week (This time i waited) I am getting these errors. Did the json change or so?
I would love an update or fix. This script has been my bread and butter in regards of wallpeper.
It solved something for me. :)
$ python wallcatd.py
PING google.com (142.250.185.142) 56(84) bytes of data.
64 bytes from fra16s50-in-f14.1e100.net (142.250.185.142): icmp_seq=1 ttl=119 time=24.4 ms
--- google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 24.366/24.366/24.366/0.000 ms
google.com is reachable, downloading images...
Traceback (most recent call last):
File "wallcatd.py", line 54, in <module>
urlify(potd_background),
File "wallcatd.py", line 16, in urlify
img = json.loads(requests.get( str ).text)['payload']['image']['url']['o']
File "/usr/lib64/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
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.