Commit graph

29 commits

Author SHA1 Message Date
Laurent Bachelier
f7115f5f69 Fix PEP8 E713 2015-09-10 15:36:49 +02:00
Laurent Bachelier
c4f221fba0 Change pool size after session init
FuturesSession does this, but it is lost since the HTTPAdapters are
later replaced.
2015-09-10 15:36:49 +02:00
Romain Bignon
7654ded661 create the StatesMixin 2015-08-03 12:18:21 +02:00
Pierre-Louis Bonicoli
ead90ebf92 code example: use HTMLPage instead of Page
Signed-off-by: Pierre-Louis Bonicoli <pierre-louis.bonicoli@gmx.fr>
2015-07-22 13:47:01 +02:00
Laurent Bachelier
f591dba678 Browser: callback in the same place, async or not 2015-05-14 18:43:03 +02:00
Laurent Bachelier
25da89642a browser: Allow changing the Session class
In a separate method, so arguments can be removed or added.
2015-05-14 18:42:55 +02:00
Laurent Bachelier
b4a428a2c8 browser: Allow more control of the referrer 2015-05-14 18:42:52 +02:00
Romain Bignon
7891ce6118 fix crash if dump_state() occurs without a current page 2015-03-25 01:21:28 +01:00
Romain Bignon
6709974d35 shutdown the session async executor to cleanup useless threads 2015-03-24 23:59:39 +01:00
Romain Bignon
195b61fb57 give max_retries to FuturesSession in case it may build HTTPAdaptors 2015-03-24 23:59:05 +01:00
Florent
47fe42135c Browser: move load/dump_state to LoginBrowser
It does not make sens to store a cookie for a non-logged browser.
2015-03-20 22:23:09 +01:00
Bezleputh
bc1746214c [browser] catch HTTPErrors during load_state 2015-03-13 17:45:53 +01:00
Romain Bignon
cedfb5670e save and load state of browser into storage 2015-02-21 17:49:20 +01:00
Romain Bignon
e2ad595413 add LoginBrowser.do_logout() method (which, by default, removes cookies) 2015-02-04 15:04:23 +01:00
Romain Bignon
e442342bf9 do not tell user about disabling of urllib3 warnings 2015-01-24 12:03:43 +01:00
Vincent Paredes
920583eae7 try to disable warnigns in urllib3, to support urllib3 version in backport 2015-01-13 10:37:50 +01:00
Romain Bignon
fa3424667f add an APIBrowser 2015-01-03 12:48:50 +01:00
Romain Bignon
0ce0a7e9b5 DomainBrowser: ability to give the baseurl in constructor 2015-01-03 12:48:50 +01:00
Romain Bignon
e5cf80aec8 add method Browser.set_profile 2015-01-03 12:48:50 +01:00
Laurent Bachelier
2c53edd5ac Do not crash with bundled urllib3 2015-01-01 12:21:19 +01:00
Bezleputh
ded5a06ac3 Do not display urllib3 warning if there is no certificate verification 2014-12-30 14:58:31 +01:00
smurail
8688e266b5 Browser.VERIFY can now be a module local file 2014-10-27 15:41:39 +01:00
smurail
2a6fa3fb36 add an asset method to get absolute path of module local files 2014-10-27 15:41:33 +01:00
smurail
a3b51902b9 enable passing the path to a CA file to Browser.VERIFY 2014-10-27 15:29:33 +01:00
Laurent Bachelier
21e8f82fd7 pep8: Use "X not in Y" instead of "not X in Y"
flake8 --select E713, semi-manual fixing
2014-10-11 01:27:24 +02:00
Laurent Bachelier
448c06d125 pep8 blank lines fixes
flake8 --select W391,E302,E301,E304

autopep8 can't fix W391 even though it claims it can.
Fixed using a simple custom script.
2014-10-10 23:41:44 +02:00
Romain Bignon
8508f951f5 fix docstrings and add weboob.browser.* in nosetests 2014-10-07 09:31:10 +02:00
Romain Bignon
c281d7a255 fix doctests 2014-10-07 09:20:07 +02:00
Romain Bignon
d61e15cf84 rename things related to browsers
weboob.tools.browser -> weboob.deprecated.browser
weboob.tools.parsers -> weboob.deprecated.browser.parsers
weboob.tools.mech -> weboob.deprecated.mech
weboob.browser2 -> weboob.browser
weboob.core.exceptions -> weboob.exceptions

Also, the new tree for browser2 is:

weboob.browser: import weboob.browser.browsers.* and weboob.browser.url.*
weboob.browser.browsers: all browsers (including PagesBrowser and LoginBrowser)
weboob.browser.url: the URL class
weboob.browser.profiles: all Profile classes
weboob.browser.sessions: WeboobSession and FuturesSession
weboob.browser.cookies: that's a cookies thing
weboob.browser.pages: all Page and derivated classes, and Form class
weboob.browser.exceptions: specific browser exceptions
weboob.browser.elements: AbstractElement classes, and 'method' decorator
weboob.browser.filters.*: all filters
2014-10-07 00:30:07 +02:00
Renamed from weboob/browser2/browser.py (Browse further)