pmdevita / vredditshare Goto Github PK
View Code? Open in Web Editor NEWA Reddit bot that reuploads Reddit video
Home Page: https://reddit.com/user/vredditshare
A Reddit bot that reuploads Reddit video
Home Page: https://reddit.com/user/vredditshare
Either the bot uploaded the wrong gif somehow or Gfycat got stuck sending the same link. You can see examples of it here (NSFW) https://www.removeddit.com/r/raining/comments/j74f6i/my_favourite_place_to_sit_and_watch_the_rain/ https://www.removeddit.com/r/raining/comments/j70x5q/heavy_rain_on_a_bridge_in_florida_today/ https://www.removeddit.com/r/raining/comments/j7in33/so_sad_it_didnt_lasted_longer_tho/
When the bot reuploads. the source should be linked or credited somehow, either in the title or something
Is this abandoned? u/vredditshare hasn't uploaded anything in a month.
Original post: https://www.reddit.com/r/CatsWhoSqueak/comments/hlhpct/big_cat_smol_squeaks/fx13am5/?context=3 has sound, but the outputs https://i.imgur.com/ePNcLLH.mp4 and https://i.imgur.com/ePNcLLH.gifv does not have sound.
Edit: thanks for your work on this bot. It gives me a way to send stuff to friends who don't use reddit.
For some reason, this video processed without audio https://www.reddit.com/r/dragonballfighterz/comments/gnsj82/be_careful_where_you_master_ultra_instinct/g3zfby2
Decided to upload to <class 'core.hosts.imgur.ImgurHost'> <core.hosts.GifFile object at 0x7f4
26a430f28>
getting imgur album id... ropLwxf
uploading... wat
{'data': {'error': {'code': 1003,
'exception': {},
'message': '[ropLwxf]: File type invalid (1)',
'type': 'Exception_UploadError'},
'method': 'POST',
'request': '/upload'},
'status': 415,
'success': False}
Traceback (most recent call last):
File "main.py", line 55, in <module>
result = process_comment(reddit, reddit.comment(message.id), q)
File "/home/pmdevita/bots/vredditshare/core/process.py", line 148, in process_comment
reversed_gif_file.audio)
File "/home/pmdevita/bots/vredditshare/core/hosts/imgur.py", line 358, in upload
id = imgurupload(file, gif_type, nsfw=nsfw)
File "/home/pmdevita/bots/vredditshare/core/hosts/imgur.py", line 164, in imgurupload
print("received wait ticket:", upload['data']['ticket'])
RedditVideo-hhuubjl1frj31
Decided to upload to <class 'core.hosts.imgur.ImgurHost'> <core.hosts.GifFile object at 0x7fb259341f28>
getting imgur album id... py1VLz8
uploading... received wait ticket: 438fd535
waiting for processing...I have no idea what's going on
<html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
</body></html>
Happened last time after a "Unable to connect to Reddit, is the internet down?" but sometimes vredditshare just sits there not doing anything with requests. It'll still forward messages to the operator though and when it exits it takes a long time, like it's marking a lot of messages as read
It says page not found.
EDIT: This works great, thank you pmdevita!
https://vreddit.cc/
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.