nim901 / gfycat Goto Github PK
View Code? Open in Web Editor NEWSimple python gfycat.com wrapper for python
License: MIT License
Simple python gfycat.com wrapper for python
License: MIT License
gfycat supports uploading a file from the filesystem by first uploading to their amazon s3 bucket with a key, then calling transcode with that key. Please consider adding to gfycatuploader, thanks!
Additional details here:
http://www.gfycat.com/api
and
http://www.reddit.com/r/gfycat/comments/22zswi/file_upload_using_the_api/
Quick python suggestion.
Currently, you gotta do
from gfycat.gfycat import gfycat
upload = gfycat()
Quick suggestion, first off, maybe titlecase the class (so it's Gfycat)
Or maybe even name it Uploader or GfyUploader
Then, in init.py, you should do from gfycat import Uploader
Now, we can do
from gfycat import Uploader
upload = Uploader()
or
import gfycat
upload = gfycat.Uploader()
Otherwise, great package! Saved me a lot of time, and works flawlessly.
Cheers.
there is no catch for urllib2.HTTPError
When I import the module as usual using ipython2.7 on linux I get the following error:
import gfycat
gfycat.gfycat()
AttributeError: 'module' object has no attribute 'gfycat'
I think this is because python confuses the module namespace with the class namespace.
might be relevant
The solution for me was
from gfycat import gfycat
g = gfycat
upload = g.gfycat()
Am I doing something wrong here? Because this should clearly not be the way to access a module.
Shouldn't this class be renamed to avoid any confusion by python or the people using it?
Sometimes when trying to upload a file, you will see this messge:
"Access denied | upload.gfycat.com used CloudFlare to restrict access"
looks like adding simple user-agent to the http headers will solve this
I think that this will be a nice option to have
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.