Skip to main content
17 events
when toggle format what by license comment
Nov 13, 2023 at 4:21 history edited 76484 CC BY-SA 4.0
improve grammar and spelling
Apr 29, 2022 at 2:51 comment added ShoeLace i needed to at **kwargs to eth get() call for #test-login otherwiuse my verify=False got lost
Sep 2, 2021 at 8:38 comment added Jari Turkia Given improvements in Python 3, my test is much simpler than above code. First get the file mtime session_filemtime = os.path.getmtime(self.session_filename) then calculate the difference in seconds last_modification_since = datetime.now().timestamp() - session_filemtime. No datetime-conversions needed. No time-module needed.
Sep 18, 2020 at 8:02 comment added DomTomCat the find method of a string returns -1 if the search string was not found in it (i.e. here: looking for self.loginTestString.lower() within res.text.lower())
Sep 17, 2020 at 19:02 comment added Vichtor Excellent answer! If I may ask, knowing this way long time ago you posted this. Can you/someone explain the line: res.text.lower().find(self.loginTestString.lower()) < 0 ? Doesnt that mean that it looks for a string and returns 0 if it doesnt find a match?
May 15, 2020 at 17:50 review Suggested edits
May 15, 2020 at 21:15
Mar 10, 2020 at 15:41 comment added DomTomCat It does use the requests module. How would you go about implementing it as part of the module? or how do you mean @user1602 ?
Dec 20, 2019 at 6:27 comment added Konstantin Glukhov Shouldn't be implemented as part of the request module?
Nov 21, 2017 at 15:14 history edited DomTomCat CC BY-SA 3.0
added 366 characters in body
Nov 21, 2017 at 11:36 history edited DomTomCat CC BY-SA 3.0
added imports, removed a bug for "post"
Jun 3, 2017 at 19:31 review Suggested edits
Jun 3, 2017 at 21:32
Jun 3, 2017 at 19:08 comment added duality This is a great answer, it's strangely hard to search for this solution as well.
May 12, 2016 at 8:35 history edited DomTomCat CC BY-SA 3.0
optimized code for checking login every time after getting session (instead of only when truely logging in)
May 10, 2016 at 7:51 history edited DomTomCat CC BY-SA 3.0
optimized code for saving to cache
May 10, 2016 at 6:51 history edited DomTomCat CC BY-SA 3.0
edited sample code
May 10, 2016 at 6:45 history edited DomTomCat CC BY-SA 3.0
fixed some code issues
May 9, 2016 at 14:32 history answered DomTomCat CC BY-SA 3.0