#python script
Explore tagged Tumblr posts
Text
put @i-am-a-snom and jerma985 with key plot points into a time loop and see what happens
172 notes · View notes
smak-annihilation · 1 year ago
Text
Tumblr media
12 notes · View notes
iyunia · 10 months ago
Text
There is an easy way to paste long texts into Minecraft books!
After a long period of absence I emerge to make a single post, this time not as an artist (I'm still losing to artblock) but as an amateur creator of terrible Python scripts. Pasting long texts into Minecraft books has been the bane of my existence recently, so I thought I'd share my solution.
Said solution is an if-elif spaghetti script that splits text from a file into parts based on the width of characters used in it, then loads them onto clipboard and pastes them into a book one by one. It's supposed to do what Block Book Binder by Andrew Lalis does but without resulting in some pages being empty (at least, in Java Edition 1.20) and with partial support for Cyrillic.
Tumblr media
Another script to come out from under my hand copies pages of a pre-existing book, saves their contents as a file for later use, and automatically pastes them after a key press.
Programming is far from my strong suit but I'm pretty happy with what I managed to do (with the exception of that comma in the prompt that I forgot to remove, it bugs me so much now that I noticed it). I hope this will be helpful to someone other than me! 💙
4 notes · View notes
Text
Tumblr media
8K notes · View notes
front-facing-pokemon · 1 year ago
Text
Tumblr media
237 notes · View notes
pinkkop · 8 days ago
Text
I've now posted my second weekly QL recap post and I'm honestly just really proud of myself. Not just that I've stuck to doing it but also that I've managed to make it something I might actually be able to keep doing because I've made it as easy as possible for myself. That way it's less likely that it'll start feeling like a chore or that it'll take up a lot of my time when I'd rather be talking about the shows than formatting a post.
So because I'm a nerd and I kinda wanna show off a little bit because I'm proud of what I've managed to make, let me tell you exactly what I've set up to make my weekly recap post.
The basis for the post is simple enough: an excel spreadsheet and a python script.
My Spreadsheet of BLs
The spreadsheet is based on My Watchlist on MyDramaList which I literally just do ctrl+A and copypaste into a sheet. This is then automatically compiled into a different sheet where I've made a better overview of all the shows I'm watching and have watched in the past.
Based on this I've set up the weekly overview in a separate sheet shown below
Tumblr media
When I'm compiling my weekly recap I can then easily add any new information here.
For new shows I add the information below to the sheet
- MD Title (copied from MyDramaList overview sheet)
- Title (usually copy of MD title with minor edits)
- Site I'm watching the show on
- Tags I want to use for the show
- Episode nr. I'm starting the show on
I also make a banner for the show but I've found a good source for images so it doesn't take long most of the time.
I have to manually upload the banner for the first week but then for the second week a show is in the recap, I can add the HTML for the banner from the previous week's post to the sheet. That way the banner will just be automatically be added to the post every week after that.
Throughout the week I then write notes on each episode I watch into the sheet and before I make the actual post I add the order I want the shows to appear in on the post.
The Script is Where the Magic Happens
When I've finished filling out the spreadsheet for the week I go to my python script, change the week number in the script and run the script.
In the script I've taken the HTML code from my original recap post and set it up so the script fills the information from my spreadsheet for each show into the right places in the HTML code. Since I doubt you guys would find it riveting to look at my full script, here's a little snippet!
Tumblr media
When I run the script it then prints out the HTML for the post which I can insert into a new post on tumblr and voila, a weekly recap!!!
I do then have to go through the text for each show and add breaks and spellcheck because that's easier to do here than in the excel cell where I write the notes to begin with. If I have any overall notes or any new banners I have to add, then this is also when I'd do it.
I'm sure there are things you could set up in a better way but this works for me and reduces the amount of time I have to set aside every week for creating the post by a lot. It just makes it easier for me to share my thoughts in a way that's nice to look at without having to spend a ton of time formatting a post each week.
Hope this didn't take away any of the magic behind my posts but just gave a cool insight into the things you can do to make recurring posts easier to make.
Any questions or comments are welcome!
Side note: if you use tumblr on the mobile app and notice that any of the lines with "Episode x of x || Watching on:[site]" are split into two lines, let me know!
That line was surprisingly the hardest to make look the way I wanted because the width of posts and look of text types change depending on whether you're on desktop or the mobile app.
18 notes · View notes
katatty · 2 months ago
Text
Tumblr media
Very excited to finally be getting Pleasantview Plus archived on my website! I have been putting it off for a long time, since the neighbourhood in chronological order is 808 pages long... but that's all the more reason to get it backed up somewhere, I would hate to lose all those memories some day.
This project is mainly for myself, obviously, but if you ever wanted to read the first season of my uberhood, complete with low-quality pictures, in a chapter-by-chapter format... well, here you go! XD
21 notes · View notes
nixcraft · 1 month ago
Text
I guess you were born with geekiness in your blood 😂
Tumblr media
13 notes · View notes
forever-stuck-on-java-8 · 2 days ago
Text
I was forced to use python at work today.
It actually wasn't terrible but damn do I miss types
figuring out what what I thought was a string is actually a dictionary AT RUNTIME is SO FUCKING ANNOYING because I forgot a .values() somewhere
11 notes · View notes
Text
decriminalize infodumping criminalize using an incredible song in your video and not leaving a link in the description
141 notes · View notes
Text
nieche internet micro celebrity satan gay frankenstein's monster
Tumblr media
the art I use as my blog background
8 notes · View notes
smak-annihilation · 1 year ago
Text
it gives a small chance for the ultra rare shoutout
2 notes · View notes
cephandriusnimi · 7 months ago
Text
Letting everyone know that cobalt.tools is perfectly legal for downloading Youtube music and videos
Also works on most other social medias (including this one)
It also has a GREAT API, I've written a Python script where you paste in a playlist link and it downloads each individual video as an MP3
I have a discord bot version plus a few other things coming up
IDK if that's something anyone's interested in though. Let me know, please! Reblog for visibility! It helps a lot!
27 notes · View notes
starbuck · 1 month ago
Text
going into my final week of classes and we always have one last week after the final paper (so the professors have time for grading) where typically the only work we have is one last discussion post.
usually, this post is pretty simple and light (to go easy on us after the final). my ethics class is like “summarize your conclusions from your final paper! :)” and my communications class is like “tell the class about your career goals! :)”
meanwhile, statistics…
Tumblr media
10 notes · View notes
carlyraejepsans · 2 years ago
Text
*head-to-toe drenched in blood after blocking hundreds of terfs* heya
89 notes · View notes
Text
put @neil-gaiman and pomni with holiday cheer into a 1980s music video and see what happens
how do you even start an introduction post?? anyways this is will be an art blog, mostly digital art but probably some traditional art as well. Animations as well, though if I get further into that I will add a youtube link here {}
no clear subject but you should expect a plethora of terraria themed art/fanart.
not open for commissions for now but maybe in the future.
Also I am sewn to @smak-annihilation and @randomly-generated-posts-machine
Tumblr media
5 notes · View notes