JodelRaccoons / jodel_api

Unoffical Python Interface to the Jodel API
https://github.com/nborrmann/jodel_api
MIT License
18 stars 7 forks source link

Newly created accounts blocked on startup #19

Closed springjools closed 2 years ago

springjools commented 2 years ago

Issue

Can someone verify this issue? I'm seeing newly created accounts as blocked. Happened since a couple of days I think. I could also be doing something wrong.

...

Environment

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

$ pip3 show jodel_api
Name: jodel-api
Version: 1.2.11
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: /usr/local/lib/python3.8/dist-packages/jodel_api-1.2.11-py3.8.egg
Requires: future, mock, protobuf, requests, varint
Required-by:
$ pip3 -V
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
$ python3 -V
Python 3.8.10
$ python3 -c "import jodel_api; print(jodel_api.JodelAccount.version); print(jodel_api.JodelAccount.secret)"
7.26
b'ITphnJSfuGskaTENCxRIPbiiaMScFRhycyZvFNaT'
ttiasg commented 2 years ago

Same on my end. I noticed the same beahvior while implementing the ios registration on my own and was actually surprised it startet working for a short time after this wrapper here got updated.

springjools commented 2 years ago

Old accounts still work. Also I noticed that they block accounts if there is too much activity (probably per ip), but the block isn't instantaneous; it can come after a delay of some minutes or hours. Obviously, with the client you can be very active until the limit comes, so there must be something imperfect with the api. Sometimes I have been rate limited with my telephone as well, even without doing a lot. Could also be related to movement too fast etc.

I also noted that accounts are always created with country = "DE". Could this be the issue if latlon does not match?

asZacJxca commented 2 years ago

Whats the point of these useless projects?

Unbrick commented 2 years ago

@springjools @ttiasg I'll look into this in the coming days, maybe Jodel blocked accounts registered with iOS devices and verified using GCM but that is just a guess.

asZacJxca commented 2 years ago

@Unbrick Why bother? they will just keep patching it

Unbrick commented 2 years ago

@asZacJxca because it's quit good fun. It's like a cat and mouse game but on a technical level. Taking new obstacles given by Jodel improves my knowledge and my tooling. I even gives me the opportunity to develop own tools which can then be used in other projects. And as far as I know the guys at Jodel HQ are cool with it, so why not?

asZacJxca commented 2 years ago

@Unbrick Where can i read when they said that?

Unbrick commented 2 years ago

@asZacJxca sadly you can't, they told us (JodelRaccoons) so when we visited them in Berlin (back in the JodelXposed/JodelPatched times). If you have any more questions unrelated to this issue, feel free to hit me up on Telegram (@ubrick).

springjools commented 2 years ago

I also think it's fun and useful. Why are you following this issue @asZacJxca if you are not interested?

Unbrick commented 2 years ago

@springjools @ttiasg I just updated the keys to 7.28.1 (Android) with commit 465ec21229f33d33ef799b6ce2358bbba7539afe and the registration is working for me again. Can you verify this?

ExTBH commented 2 years ago

I still get the same error from last issue, am i doing something wrong? :(

image

Unbrick commented 2 years ago

@ExTBH can you please execute the following command?

python3 -c "import jodel_api; print(jodel_api.JodelAccount.version); print(jodel_api.JodelAccount.secret)"

(Have you cloned the latest commit from the github repo?)

ExTBH commented 2 years ago

i started a new venv and did pip install after i saw u updated it i will try clone it now

edit : same error after i tried it with the clone command in main page image

Unbrick commented 2 years ago

@ExTBH Sadly there is currently no version of this repo within the pip repositories so you need to clone it manually or install it using the following command:

pip3 install git+git://github.com/JodelRaccoons/jodel_api.git#egg=jodel-api
ExTBH commented 2 years ago

It worked Thanks, sorry if i wasted your time im new i only know pip install 😄

Unbrick commented 2 years ago

@ExTBH No problem, glad i could help!

springjools commented 2 years ago

Hmm, I'm still getting blocked accounts. Did you try with: `

import jodel_api lat, lng, city = 48.148434, 11.567867, "Munich" j = jodel_api.JodelAccount(lat=lat, lng=lng, city=city) print(j.get_user_config()[1].get('user_blocked') `

Edit: they are not blocked with those default values. I used other lat and lon values and got blocked accounts

ExTBH commented 2 years ago

Im using the same account from 4 hours ago, i got the recent posts couple times, account not banned for me

lat, lng, city, country = 26.215900, 50.538029, "Jidhafs",'Bahrain'

edit : u dont add a country variable, it will set it to germany if u dont change it, could be why they ban u

springjools commented 2 years ago

Yes, maybe. I tried with different lon and lat and depending on those, you get banned too. Without a country variable.

springjools commented 2 years ago

The api works but depending on Lon and Lat, you may be banned.

Edit: they are looking ip country from ip and Lon and Lat has to match the country of your ip.

springjools commented 2 years ago

Actually it wasn't the fact that IP has to match country, it was just a geoban. I tried a few degrees south and then the accounts didn't get banned