nborrmann / jodel_api

Unoffical Python Interface to the Jodel API
MIT License
149 stars 33 forks source link

get_posts_popular returns sometimes a empty message #64

Closed gege-hoho closed 6 years ago

gege-hoho commented 6 years ago

Issue

get_posts_popular(skip=0, limit=1, after=None, mine=False, hashtag=None, channel=None) return sometimes empty 'message'

Environment

If you're reporting a bug, please attach the output of the following commands:

$ pip show jodel_api
Name: jodel-api
Version: 1.2.8
Summary: Unoffical Python Interface to the Jodel API
Home-page: https://github.com/nborrmann/jodel_api
Author: Nils Borrmann
Author-email: n.borrmann@googlemail.com
License: MIT
Location: c:\python27\lib\site-packages
Requires: requests, future, mock, protobuf, varint
$ pip -V
pip 9.0.1 from c:\python27\lib\site-packages (python 2.7)
$ python -V
Python 2.7.14
$ python -c "import jodel_api; print(jodel_api.JodelAccount.version); print(jodel_api.JodelAccount.secret)"
4.75.2
MfmdSjJPnKVcFVUcemCpOzBPiFEBIQDbLjvpsUPK
nborrmann commented 6 years ago

The Jodel API is very inconsistent and generally sucks. Not much we can do about it, except work around it. Remove the limit=1 and pick the first entry in code.