theenigmablade / holo Goto Github PK
View Code? Open in Web Editor NEWEpisode discussion bot for /r/anime.
Home Page: https://reddit.com/r/anime
License: MIT License
Episode discussion bot for /r/anime.
Home Page: https://reddit.com/r/anime
License: MIT License
Since you're already requiring Python 3.4 or higher, I suggest using asyncio. It provides a nice generator-based event loop, which makes things cleaner and more flexible as opposed to invoking holo multiple times.
For HTTP connections, there's aiohttp. I don't know of any reddit clients that use asyncio.
Hi,
I was wondering about the possibility of adding a poll link to each episode post to track user ratings and/or appending that link to the growing weekly table for a series. r/movies does something like this for each film (post: https://www.reddit.com/r/movies/comments/8a5qdo/official_discussion_a_quiet_place_spoilers/ poll: https://youpoll.me/4701/)
I worked on a sample Python script using Selenium that could dynamically create a poll link for a series and episode (ex: https://youpoll.me/5831/). Another site that looked promising was strawpoll.com.
Is this something the Holo project has considered adding?
I mean Seriously ๐ก :D
Is this script to do what exactly ? Its not that obvious from the ReadMe ... Does it let you see comments perhaps ? Sorry for the silly question... (Holo is not a tool you know?)
Ex. momokuri on Crunchyroll (rss).
The episode number is specified as a range, 1-2
.
Best location is probably in the links section. Would require a reddit link service.
Parsing the HTTP headers for the content length is better than downloading the entire feed data.
FUNimation includes Content-Length
in the HTTP header for http://www.funimation.com/feeds/ps/videos?ut=FunimationSubscriptionUser&show_id=SHOW_ID
. (You can send the HEAD
command to get this)
Crunchyroll doesn't include Content-Length
for some reason, but they do support partial GET requests (i.e. including Range
in the GET
request). Then Content-Range
will be included in the response header, which includes the total length of the content (after compression I believe). I used the URL of the form http://www.crunchyroll.com/SHOW_NAME.rss
for testing.
I haven't tested other URLs or sites, but hopefully they work similarly.
All major services (FUNimation, Crunchyroll, Daisuki) allow episodes that are non-integers. These episodes are nearly always recaps or specials so the decision can be made to not bother with those episodes. If that's the case non-integers should probably be explicitly ignored otherwise casting to int will cause episode numbers to get improperly converted. This will probably work fine since episode x.y will always be casted to x which very likely already exists but it's something extra to take into account.
The FUNimation API stopped getting updated on March 14th presumably because all old applications were phased out in favor of new ones with the FunimationNow branding. These new applications use a completely different API which is shared among multiple device types (instead of a separate API for every device). Both the FUNimation PlayStation API and mobile API are no longer updated with new episodes (not sure about other ones).
There is a small chance that this happened because of the DST change since the old APIs are still online but no longer reporting new information. I personally doubt it since about a day after the DST change new data was added.
Outline with links to the API is already created:
https://github.com/TheEnigmaBlade/holo/blob/master/src/services/stream/daisuki.py
Related to #8.
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.