Romain Bignon
e3975f38b3
fix compatibility with python2.6
2015-05-24 13:11:32 +02:00
Matthieu Weber
1d67bf360f
formatters: use weboob.tools.misc.guess_encoding instead of locale.getpreferredencoding()
...
Signed-off-by: Matthieu Weber <mweber+weboob@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
2015-05-24 11:57:25 +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
Laurent Bachelier
7263145869
browser: Add Googlebot profile
2015-05-14 18:41:12 +02:00
Matthieu Weber
95cd12fd22
formatters: use locale.getpreferredencoding() instead of utf-8
...
Signed-off-by: Matthieu Weber <mweber+weboob@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
2015-05-14 15:07:20 +02:00
Romain Bignon
14fc8ba7e2
add a Javascript class (which uses execjs library)
2015-05-12 09:03:37 +02:00
Romain Bignon
a33d26558b
move guess_encoding into weboob.tools.misc
2015-05-09 17:52:16 +02:00
Vincent Paredes
bf389d7045
striping data on csv
2015-05-07 17:23:57 +02:00
smurail
511daa73a1
add a context argument
2015-05-07 14:32:59 +02:00
smurail
3835a0c19c
fix error when a name is not found
2015-05-07 14:32:58 +02:00
smurail
dd8bf4fa2f
add a way to instantiate an object from a dict of its fields values
2015-05-07 14:32:57 +02:00
smurail
62adf86daa
add JSON helpers
2015-05-07 14:32:55 +02:00
Romain Bignon
6d6c49a5e6
remove unused import
2015-05-06 11:25:47 +02:00
smurail
be125cf84f
fix issue with GridVirtKeyboard usage while removing overkill optimization
2015-05-06 11:06:21 +02:00
smurail
d38656540e
fix issue with encoding
2015-04-28 15:18:24 +02:00
smurail
f653b2f531
parse french date with DMY order by default
2015-04-28 15:18:23 +02:00
Bezleputh
2f0643085e
[radioob] radioob can now download full album
2015-04-13 09:42:21 +02:00
Romain Bignon
84ce7b72ec
fix wording
2015-04-04 15:46:01 +02:00
Romain Bignon
b110f10c9e
if backend name is already taken, suggest the first available one with the same base
2015-04-04 12:52:19 +02:00
Romain Bignon
acb7b4c9e9
update help of "add" command, and improve code
2015-04-04 12:38:49 +02:00
Kitof
7155539965
Add module_name param in add_backend to allow command line interaction
2015-04-04 12:32:57 +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
Romain Bignon
a9b86d60a5
if AsyncLoad parameter is None, do not try to open it, and Async returns None
...
This fixes a bug with LCL for transactions without details
2015-03-24 23:57:21 +01:00
Romain Bignon
e6a80af479
call browser.deinit() if defined
2015-03-24 23:57: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
Florent
b3aabdeeaf
Be consistent in enable state: use human readable values
2015-03-17 22:16:15 +01:00
Florent
9208b7bb31
Add 'on' and 'yes' to enabled values
...
Be consistent with ouiboube core
2015-03-17 22:08:50 +01:00
Bezleputh
bc1746214c
[browser] catch HTTPErrors during load_state
2015-03-13 17:45:53 +01:00
Bezleputh
11a63c33ce
[filter] improve Join filter
...
The filter will now act a little bit more like the join command
I also added some parameters that will help formatting (newLine, addBedore, addAfter)
2015-03-13 00:05:36 +01:00
Bezleputh
a3d351eb88
[base] create enum in base and use it in calendar and housing
2015-03-13 00:05:35 +01:00
Bezleputh
a39dff77a5
[Element] create new element : DictElement
...
use new DictElement in modules
2015-03-13 00:05:35 +01:00
Romain Bignon
be122f0fa6
add 'replace' xpath function
2015-03-12 15:22:42 +01:00
Romain Bignon
569ff245a3
catch csv exceptions
2015-03-09 10:44:23 +01:00
Romain Bignon
2afd27b4a4
use StateBrowser, s/BrowserToBeContinued/BrowserQuestion/ and coding style fixes
2015-03-08 16:31:36 +01:00
Romain Bignon
248830752d
add (deprecated) StateBrowser which saves cookies into storage
2015-03-08 14:21:23 +01:00
Baptiste Delpey
3a05b29bc3
add BrowserToBeContinued exception and handle it
2015-03-08 14:21:23 +01:00
Kitof
8ae6ad68aa
[shopoob] Improvements + pep8 fixes
2015-03-04 13:37:22 +01:00
Laurent Bachelier
dd1173e2f2
filters: JSON Dict improvements
...
- Allow the selector to already be a list
- Allow having None as a valid value (JSON "null")
- Handle lists in addition to dicts
- Try to guess whether the selector element is intented to be an int or a str
based on the structure available (list means int)
2015-03-02 15:48:38 +01:00
Laurent Bachelier
7d5835d84f
browser: Fix crash when using HEAD on a page-matching URL
...
HEAD responses have no content, so it doesn't make sense to build
Pages out of them.
2015-03-02 15:48:38 +01:00
Laurent Bachelier
677cc18524
browser: Add an absurl method to Page
2015-03-02 15:48:37 +01:00
Romain Bignon
396defc7f5
set default value of Contact.profile to OrderedDict()
2015-02-28 15:55:33 +01:00
Romain Bignon
14a11abb40
fix crash with previous commit and unhandled urls
2015-02-25 17:51:36 +01:00
Romain Bignon
7df61bc6cb
add BaseBrowser.get_page method (from _change_location) to get Page object from a result buffer without changing location
2015-02-25 17:40:01 +01:00
Romain Bignon
6a108221db
add HTMLPage.REFRESH_MAX parameter (disabled by default) to configure handle of refreshes
2015-02-25 11:35:45 +01:00
smurail
fa7910cff4
add an Eval filter to eg. use arithmetic expressions
2015-02-24 18:58:36 +01:00
Baptiste Delpey
b0943a943b
fix investment display when some fields are empty
2015-02-23 18:59:57 +01:00