6 ms·
Show HN: Twitter bot which tweets Magic cards with appropriate GIFs superimposed
- stephengillie 9y agoThat's pretty amazing. Too bad we can't print GIFs. Will this lead to a resurgence of "MTGIF" or "Magic: The GIFering"? (And all this time, I've been doing it manually with Imgur images and MTGCardMaker.com. Tangentially, here is an album of MTG cards I made to try and "port" common Powershell functions to MTG: https://imgur.com/a/4sa6v https://imgur.com/a/4sa6v)
- zanedb 9y agoWell, you can (technically) print GIFs.. https://www.reddit.com/r/DIY/comments/6x0337/i_built_a_camera_that_snaps_and_instantly_prints/ https://www.reddit.com/r/DIY/comments/6x0337/i_built_a_camer...
- hkmurakami 9y agoInvite webrequest at cmc1 is pretty OP! :)
- lightedman 9y ago"Too bad we can't print GIFs." Gonna call it now - physical digital trading cards, animated.
- bradmwalker 9y agohttps://cardamajigs.com/collections/lenticular-tokens https://cardamajigs.com/collections/lenticular-tokens
- lightedman 9y agoNo, no. Not even close.
- dbaupp 9y agohttp://gifpop.io/ http://gifpop.io/ does a pretty good job using lenticular printing.
- iak8god 9y ago> Too bad we can't print GIFs. This is the best approximation I've seen: https://www.giphoscope.com/ https://www.giphoscope.com/
- cvsh 9y agoThis is awesome. Side note: I absolutely despite how Twitter bakes all GIFs into videos and prevents you from saving them as GIFs.
- minimaxir 9y agoIncidentally, the output and uploaded file is a video, because there's no point in saving it as a GIF since it'll be baked into a video anyways.
- ReverseCold 9y agoGIF is basically a bad file format, which is why people will use anything else
- cutcss 9y agoTwitter doesn't let you save the video neither.
- rrampage 9y agoOne (cumbersome) way of saving the video is to open the tweet and prefix it with m. e.g https://m.twitter.com/github/status/917527674163167233 https://m.twitter.com/github/status/917527674163167233 and then download video.
- JetSpiegel 9y agoShift+Right Click on Firefox should work.
- unkown-unknowns 9y agoyoutube-dl link to tweet from your terminal
- corobo 9y agoThat always results in desynced A/V whenever I try it. Usually lots of errors like the following from ffmpeg, then the audio is about a second behind the video [mp4 @ 0x98668b4620] Non-monotonous DTS in output stream 0:1; previous: 132227, current: 131204; changing to 132228. This may result in incorrect timestamps in the output file.
- justhackedme 9y agoToo bad it barely works. I like the idea though.
- cutcss 9y agoI can't believe it's 2017 and Twitter still doesn't have a "Top Tweets" link in every profile to sort tweets by popularity (RT+likes count)
- porfirium 9y agoI wouldn't like that. What I like about Twitter is that, for the most part, digging in old tweets is hard.
- cutcss 9y agoActually one just have to press the "end" key a few times and you quickly display all tweets of a single person, just not sorted. Anyway, this feature its missing for the time-less accounts (e.g not time-sensitive tweets), such as the one featured in this project and other ones like @AwardsDarwin @DeviantArt, @greatestquotes
- batiudrami 9y agoTwitter is a complete mess, UX-wise. I don't know what they're doing over there.
- spiderfarmer 9y agoProbably a continuous fight between progessive and conservative UX designers. Just like the US basically.
- jessaustin 9y agoHaha does that mean that "prog" and "cons" designers actually have basically identical tastes, and fixate on tiny insignificant differences while ignoring a whole universe of design possibility? That would explain how fast Twitter gets new things out the door...
- TazeTSchnitzel 9y agoThat would imply at least someone within the company understands how people use the product. That's hard to believe.
- Sniffnoy 9y agoI don't understand... where is it pulling the GIFs from? How does it determine what GIF to use for a given card?
- lambda 9y agoThe code is pretty short and easy to read: It parses the card names and IDs from a CSV file here: https://github.com/minimaxir/magic-the-gifening/blob/master/mtgifening.py https://github.com/minimaxir/magic-the-gifening/blob/master/... And calls create_mtg_gif, which calls get_giphy_gif, which requests GIFs from the giphy API by searching for the card name, and then finds one that has an appropriate aspect ratio. https://github.com/minimaxir/magic-the-gifening/blob/master/utils.py https://github.com/minimaxir/magic-the-gifening/blob/master/...
- minimaxir 9y agoSpecifically, the GIPHY Random endpoint, which takes in a tag as a parameter: https://developers.giphy.com/docs/ https://developers.giphy.com/docs/
- Fragoel2 9y agoAnother slightly related cool twitter bot is @RoboRosewater, that uses machine learning to generate new cards. https://twitter.com/RoboRosewater https://twitter.com/RoboRosewater
- jcolella 9y agoVery interesting project, integrating all these different libraries. One thing, I noticed that you are using a hardcoded path to the json. Created an issue for you https://github.com/minimaxir/magic-the-gifening/issues/2 https://github.com/minimaxir/magic-the-gifening/issues/2. Thanks for sharing your work.