fbis251 / album_parser Goto Github PK
View Code? Open in Web Editor NEWAlbum Parser lets you input a URL to popular media hosts (Imgur, Gfycat, etc) and get a direct URL to a video or image
Album Parser lets you input a URL to popular media hosts (Imgur, Gfycat, etc) and get a direct URL to a video or image
Example responses can include 4xx, invalid JSON returned, etc
Could consider wrapping the thrown exception so that the library's user can still get the original exception
It'd be a good idea to keep the compiled patterns as static final fields for each Parser
ParserResponse
should make it easier for library users to access an album. getMedia() support was added in v0.9 and a method to easily get album data should be provided
This will help determine whether the video has sound (Streamable/vid.me) vs silent videos (Imgur, Gfycat)
A lot of APIs support error messages, if they don't one can be custom built based on the API codes they provide
It should implement all methods with default values such as DURATION_UNAVAILABLE, then the API response classes can override the methods that the API supports as needed
API returns multiple formats
A static method would be best, but it seems that you can only have static methods in interfaces with Java 8
Services such as Imgur and Vidble support thumbnail resolutions of their media
It'd be better if fields such as default quality sizes, API keys etc only be set once. The builder pattern would allow setting those fields only once for each instance
Supported on Gfycat for example
Example method
ParserResponse parseUrl(String urlString, String cachedJson);
This will make it easy to build entries for AndroidManifest.xml
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.