JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #21  
Old 19.09.2022, 16:53
chris0192 chris0192 is offline
DSL User
 
Join Date: Mar 2015
Posts: 35
Default

Kann die url nicht sehen
Reply With Quote
  #22  
Old 19.09.2022, 17:02
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,084
Default

Quote:
Originally Posted by chris0192 View Post
Kann die url nicht sehen
Habe meinen Post editiert
__________________
JD-Dev & Server-Admin
Reply With Quote
  #23  
Old 19.09.2022, 17:08
chris0192 chris0192 is offline
DSL User
 
Join Date: Mar 2015
Posts: 35
Default

Quote:
Originally Posted by Jiaz View Post
@chris0192
einfach nur (ohne Leerzeichen)
also so wie sie ursprünglich war
github.com/Bizzy13/PYTHON-Speedport_Smart-Reconnect/blob/master/Reconnect.py
Mit http

Logging in...
Traceback (most recent call last):
File "Reconnect.py", line 224, in <module>
login()
File "Reconnect.py", line 102, in login
json_object = string_to_json(json_string)
File "Reconnect.py", line 213, in string_to_json
return json.loads(string)
File "C:\Python27\lib\json\__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "C:\Python27\lib\json\decoder.py", line 367, in decode
raise ValueError(errmsg("Extra data", s, end, len(s)))
ValueError: Extra data: line 1 column 3 - line 1 column 1403 (char 2 - 1402)

Mit https

C:\Python27>python Reconnect.py
Extracting Random-Key...
Traceback (most recent call last):
File "Reconnect.py", line 221, in <module>
get_challenge_val()
File "Reconnect.py", line 74, in get_challenge_val
challenge_val = extract(speedport_url + login_html, 'challenge = "', '";')
File "Reconnect.py", line 122, in extract
html = open_site(url, None)
File "Reconnect.py", line 196, in open_site
res = opener.open(req)
File "C:\Python27\lib\urllib2.py", line 429, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 447, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 407, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1241, in https_open
context=self._context)
File "C:\Python27\lib\urllib2.py", line 1198, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 10061] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte>

Last edited by chris0192; 19.09.2022 at 17:12.
Reply With Quote
  #24  
Old 19.09.2022, 17:29
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,084
Default

@chris0192: https wird nicht gehen, siehst ja an der Fehlermeldung
Quote:
urllib2.URLError: <urlopen error [Errno 10061] Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte>
Man müsste das Skript anpassen damit der Inhalt von
Quote:
json_object = string_to_json(json_string)
herausgeschrieben wird, zb
ein
Quote:
print (json_string)
davor. Ich vermute das der Login anders ist

Ansonsten zb der Workaround über eine Smarte Steckdose und dann immer einen Power-Cycle anstoßen damit der Router Aus/An geht
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 05:27.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.