Nice release :-) I will look at it.
My first Try was to run it and I get errors :-/
I try to figure out, I am not experienced in python than in Golang :-(
Code:
C:\Ogame\Barakis\build\lib\barakis>python __init__.py
PLS input User Info
Universum: Rosalind
Usernameor Email: [Only registered and activated users can see links. Click Here To Register...]
Password: XXXXXXXXXXXXXXXXXX
Visit: http://127.0.0.1:5000
[2020-07-11 16:41:29,732] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\_compat.py", line 39, in reraise
raise value
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "__init__.py", line 51, in index
response.data = inject_ogame('page=ingame&component=preferences') + load_script.replace('\n', '')
File "__init__.py", line 28, in inject_ogame
empire.server_language)
AttributeError: 'OGame' object has no attribute 'server_language'
127.0.0.1 - - [2020-07-11 16:41:29] "GET / HTTP/1.1" 500 426 0.181204
[2020-07-11 16:41:30,204] ERROR in app: Exception on /favicon.ico [GET]
Traceback (most recent call last):
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\_compat.py", line 39, in reraise
raise value
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "__init__.py", line 62, in ogame_pages
response.data = inject_ogame(ogame_url)
File "__init__.py", line 28, in inject_ogame
empire.server_language)
AttributeError: 'OGame' object has no attribute 'server_language'
127.0.0.1 - - [2020-07-11 16:41:30] "GET /favicon.ico HTTP/1.1" 500 426 0.313201
[2020-07-11 16:41:34,870] ERROR in app: Exception on /setup_bot [GET]
Traceback (most recent call last):
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\_compat.py", line 39, in reraise
raise value
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\ogame\AppData\Local\Programs\Python\Python38\lib\site-packages\flask\app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "__init__.py", line 62, in ogame_pages
response.data = inject_ogame(ogame_url)
File "__init__.py", line 28, in inject_ogame
empire.server_language)
AttributeError: 'OGame' object has no attribute 'server_language'
127.0.0.1 - - [2020-07-11 16:41:34] "GET /setup_bot HTTP/1.1" 500 426 0.302227
I never used the Python Wrapper. I do everything in GoLang. My base was the RestAPI Client and I modified it for using Database and added Routines and Scripting with Ankh like OGame Ninja do. Actually I do not have time to clean things up, but if you like I can invite you to my project. Its not public because, the Code is learning stuff and many things aren't all right atm.
I like the Injection of code into the OGame Homepage directly. I developed an HTML Template Set with Golan HTML/Templates for my needs. Its not that hard and its really responsive. :-)
@
[Only registered and activated users can see links. Click Here To Register...] Project:
Ogame is monitoring Tor Traffic and if you use Tor for over 30 Days they automatically issue a ban.
If you use Tor sometimes 2-3 times a week they do not ban for this!
@
[Only registered and activated users can see links. Click Here To Register...] Relay:
One time a Game Operater suspended my OGame Account because I am running a Tor Relay Server on my Home Network. My IP-Adress is listed on the Tor Server List. After the clarification they lifted the Ban for me and now respects Tor Relays for OGame Users.