Comments (4)
I'm not getting this error anymore (I'm using images POSTed by a form) but I am getting a 401 UNAUTHORIZED for any photo post.
from python-tumblpy.
I just tried this and am getting your original error. what do you mean "images POSTed by a form"? text posts are working for me as well. Anyone able to get this to work?
from python-tumblpy.
@lanaconqueso It's using the Flask request object, e.g., request.files['image'] and trying to pass that to Tumblepy like this:
params = {
'type': 'photo',
'caption': 'a caption',
'tags': u"foo,bar,biz",
'data': request.files['image']
}
tumblr_post = t.post('post', blog_url=app_config.TUMBLR_URL, params=params)
from python-tumblpy.
Please see #18
from python-tumblpy.
Related Issues (20)
- Missing search posts by tag : /tagged – Get Posts with Tag HOT 2
- Posting problem HOT 2
- Extra Endpoints HOT 4
- oauth issue HOT 8
- Run into TypeError with Requests 1.2.2 HOT 2
- [learning] Posting images HOT 1
- Python3 error on __repr__(self) HOT 1
- Invalid syntax when declaring object HOT 2
- Getting value error on basic initializing code HOT 1
- [Feature] Proxies support HOT 3
- Posting a Photo With Tags HOT 1
- request() fails if Tumblr returns https:// URL HOT 2
- Posting Question
- Tumblr tags not posting
- Can't Reblog Posts HOT 4
- Posting to secondary blog HOT 7
- Missing import ? HOT 1
- NameError: name 'urlparse' is not defined HOT 3
- Error making post HOT 6
- Tumblr can return error responses that aren't handled correctly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-tumblpy.