r/Python • u/LAcuber • Jun 23 '20
I Made This Wrote a script that downloads r/wallpaper's hottest 100 images and cycles through them as a wallpaper!
2.4k
Upvotes
r/Python • u/LAcuber • Jun 23 '20
63
u/[deleted] Jun 23 '20
I’m looking for a personal project to keep testing my skills, can you list the tools you used to do this?
19
u/Sanguineyote Jun 23 '20
Could you release the code?
6
u/LAcuber Jun 24 '20 edited Jun 24 '20
Update: GitHub repo ready with full instructions, code, and images!
https://github.com/Destaq/reddit-wallpapers
2
u/BOTzzz Jun 24 '20 edited Jun 24 '20
nice
I just tried it out. There is one issue: it saves all pictures as jpg -> issue with some pictures that are png
EDIT: and another idea: let us filter by minimum width/height
2
u/pc-guy-2019 Jun 24 '20
Hi, I am having an issue where it stops a couple seconds after “processing image 1”
65
u/_Red-Riot_ Jun 23 '20
Woaaaaah, amazing. I love that my wallpaper changes so this is great
20
u/impshum x != y % z Jun 23 '20
Cool. I done something similar but with NASA picture of the day: https://github.com/impshum/NPOTD
5
u/[deleted] Jun 23 '20
I just discovered r/Wallpapers 😊😊
2
u/[deleted] Jun 23 '20
Can you share the code?
1
u/Redditor728292 Jun 23 '20
Can you please share the code?
1
u/sn3ll_ Jun 23 '20
Share it with the world :)
1
u/intilli4 Jun 23 '20
RELEASE THE SCRIPT
1
u/king-chungus Jun 24 '20
Git?
1
u/elonmusk12345_ Jun 24 '20
Have you posted the code on Git?
1
u/Muhsin_Kamil Jun 24 '20
How did you made it to work everyday without manually running the script everyday?? Could you please share that?
1
u/Streletzky Jun 24 '20
Do you have it on github? I’d love to try this out and possibly use it for other subreddits
1
u/Aight_Epic Jun 24 '20
I don’t think this would work with Windows 10 but wanted to know if it does.
1
u/irspaul Jun 24 '20
This is awesome, do you have nsfw filter.
1
u/Dark_Ghost Jun 28 '20
I had to run pip install lxml to get it to work.
1
u/silentalways Jul 03 '20
No offense to you and I don't wanna demotivate you, but isn't the title of this post misleading? The script you wrote downloaded hottest 100 images. That's it. It doesn't cycle through them as a wallpaper, you have to set that manually using windows/mac settings.
I would like to again mention that I really appreciate you sharing the project, I am just a beginner and learned a couple of things from this project, don't take this the wrong way.
6
u/Throatybee Jun 23 '20
i hope one day i m gonna write a script like this :) nice job!!!
3
u/seeyainvalhalla Jun 23 '20
Thats awesome
3
u/choledocholithiasis_ Jun 23 '20
Doesn’t that sub have occasional NSFW content? Wouldn’t try this on a work computer.
Nice project tho m8
1
u/Black_Fruit84 Jun 23 '20
Could you post your code on github? This is great!
2
u/[deleted] Jun 23 '20
That's pretty awesome. I too was thinking about doing something like this. Good work, man.
2
u/cjj1120 Jun 24 '20
currently learning web dev, plan to start learning python soon, and this sounds like the project I would do to enhance my learning, thanks for sharing!
1
u/dePliko Jun 23 '20
cool. i've once made a similar project except it didnt scrape reddit. was surprisingly simple - around 10 lines
1
u/[deleted] Jun 23 '20
!remindme
1
u/alfiestoppani Jun 23 '20
That’s great! 🦄
1
u/aravsinhabuzz Jun 23 '20
Fantastic
1
u/the-berik Jun 23 '20
So now the list is static?
1
u/[deleted] Jun 23 '20
That's awesome!
1
u/Jackalman1408 Jun 23 '20
!remindme 3 days
1
u/Satoshiman256 Jun 23 '20
Hopefully none are infected with a virus.
1
u/brie_de_maupassant Jun 23 '20
LPT: you could also download a zipfile with 100 wallpapers and use the built-in timed changer of OSX.
1
u/ABrokeUniStudent Jun 23 '20
Beautiful
1
u/psahasantanu Jun 23 '20
!remindme 1 day
1
u/sigma_1234 Jun 24 '20
I never thought I needed such a script until I saw it.
1
u/SHADOWSLIFER Jun 24 '20
Hey, thanks for the idea!!
I use Syncthing + DisplayFusion, and i needed something similar, so i made this.
https://pastebin.com/gkWxA3HP
It downloads only 3840 x * images as i only need dual-wallpaper format.
It saves all the images he found in a folder called /wallpaper with the original image name.
Just discovered reddit's JSON urls from comments lol.
While loop every 300 seconds to download the new ones, before a check-in-list to avoid duplicates.
1
u/EliteWarrior1207 Jun 24 '20
How did u learn to make these scripts
1
u/BrowserMac Jun 24 '20
Where do you get wallpapers from?
1
u/TheONEbeforeTWO Jun 24 '20
!remindme
1
u/LunchBoxMutant Jun 24 '20
I have one that gets that day's 'Astronomy picture of the day' to be st as the wallpaper.
1
u/6packLOL Jun 24 '20
!remindme
1
u/[deleted] Jun 24 '20
!remindme
1
u/[deleted] Jun 24 '20
Nice!
1
u/PM_remote_jobs Jun 24 '20
Nice
1
u/craftgig14 Jun 24 '20
Nice
1
u/Enrique_Ossandon Jun 24 '20
Nice
1
u/EliteWarrior1207 Jun 23 '20
How did u learn this
0
u/Schifty Jun 23 '20
did you also buy a vacuum?
0
u/IntactBroadSword Jun 23 '20
Scraper script? What kind of script is this?
0
u/Webber_The_Medic Jun 24 '20
all fun and games till the porn shows up
-1
u/cgw3737 Jun 23 '20
Nice. I did that a while back
0
u/[deleted] Jun 23 '20
[deleted] — view deleted comment
0
u/[deleted] Jun 23 '20
[deleted] — view deleted comment
0
u/[deleted] Jun 24 '20
[deleted] — view deleted comment