Commit graph

145 commits

Author SHA1 Message Date
Romain Bignon
f6b5996652 fix count of forms 2014-03-22 16:06:51 +01:00
Romain Bignon
3bf7ef62c8 fix wrong behavior with cookies handle 2014-03-22 16:06:51 +01:00
Florent
41e2cab536 Add documentation 2014-03-22 14:59:01 +01:00
Laurent Bachelier
0927230e95 Also check arguments with is_here()
Otherwise, something like that would never work:
page.stay_or_go(id=1)
page.stay_or_go(id=2)  # would stay on URL for id=1

To avoid breaking simple usage of is_here(), if no arguments are
provided, then there are no checks.

That means:
page.stay_or_go(id=1)
page.stay_or_go()  # nothing happens
2014-03-22 12:43:53 +01:00
Laurent Bachelier
463fdb2016 Fix passing the URL with id2url, when provided with an URL
It was passing the match result instead.
2014-03-22 12:43:53 +01:00
Laurent Bachelier
27aa772ef5 Escape the base URL before adding it to the regexp 2014-03-22 12:43:53 +01:00
Romain Bignon
38a99064b0 add filter Format in default formatters 2014-03-21 08:31:42 +01:00
Florent
eab0f51e29 Support default values in CleanDecimal 2014-03-20 15:37:28 +01:00
Florent
0feae01a9c Add replace_dots option to CleanDecimal 2014-03-20 14:25:56 +01:00
Florent
d31e03db8e Move LoggedPage in tools.browser2 2014-03-20 12:10:21 +01:00
Florent
4e6333fbcd Do not crash if an input does not have any type 2014-03-20 11:51:03 +01:00
Romain Bignon
0a53824104 URL.open and URL.go can take 'params' argument 2014-03-20 07:48:23 +01:00
Romain Bignon
5e4337a0cb fix crash 2014-03-20 07:48:16 +01:00
Bezleputh
06cee506f9 [browser2] Add JsonPage 2014-03-20 00:45:19 +01:00
Bezleputh
1114dbd516 [browser2] Add an "open" method in order to open an url without changing the current URL 2014-03-20 00:40:55 +01:00
Bezleputh
4f4d08ec33 [browser2] Allow to import Profile 2014-03-20 00:40:55 +01:00
Romain Bignon
e217b24427 add a default value for Time/Duration 2014-03-19 20:45:39 +01:00
Romain Bignon
e3cbda5dc8 Link inherits Attr 2014-03-19 20:45:24 +01:00
Romain Bignon
06d1907d3d add filter Duration 2014-03-19 20:27:22 +01:00
Romain Bignon
16615dd337 correctly save file content with -a 2014-03-19 20:27:09 +01:00
Romain Bignon
5fb0aad01e fix crash in multithread environment 2014-03-19 18:56:39 +01:00
Florent
0362821fb6 Introduce the new Attr filter 2014-03-19 16:46:46 +01:00
Florent
ae3471fdf7 Rename Attr filter to Field 2014-03-19 16:20:24 +01:00
Florent
a34f8ec997 Return NotAvailable if NotAvailable was given 2014-03-19 16:15:49 +01:00
Romain Bignon
3013ddbda5 add Map, Date and Time filters 2014-03-19 13:50:54 +01:00
Romain Bignon
fe4dbf8698 consider select and textarea fields in forms 2014-03-19 12:19:00 +01:00
Florent
c4dfb49033 CleanChars is now an option of CleanText 2014-03-18 17:08:30 +01:00
Florent
207c5d9b41 Display the text if the regexp does not match 2014-03-18 16:24:10 +01:00
Florent
081d4f32f0 Introduce CleanChars filter 2014-03-18 16:23:51 +01:00
Romain Bignon
ec3af7bfab remove dependencie to weboob.tools.parsers 2014-03-17 21:43:57 +01:00
Johann Broudin
7621da74e6 change max_retries to 2 2014-03-14 12:30:55 +01:00
Johann Broudin
7f82f45e70 correct the usage of proxy, timeout and ssl verification in browser2 2014-03-14 12:30:55 +01:00
Laurent Bachelier
9146f2f312 Save request/response metadata with as much info as possible 2014-03-14 01:53:49 +01:00
Laurent Bachelier
3a9bc80f8a Saving cookies for debug isn't very interesting
We have them in headers in a clearer way, at least for the purpose of
debugging.
Showing new cookies as they appear could be done, though.
2014-03-14 01:53:49 +01:00
Laurent Bachelier
058cafe69e Save headers of response and request 2014-03-14 01:53:49 +01:00
Laurent Bachelier
6acfd75780 Save cookies on save_responses and pave the way for more good stuff
We apparently can't override the class in the Response, even if it is
changed in the Session. Still, it will be useful to have our own class.
2014-03-14 01:53:49 +01:00
Laurent Bachelier
95e71e329b Better filenames for save responses 2014-03-14 01:53:49 +01:00
Romain Bignon
a74b31df33 several of little fixes 2014-03-14 00:19:08 +01:00
Romain Bignon
16742dc9aa able to set None as default value on filters 2014-03-14 00:19:05 +01:00
Bezleputh
2673b3a340 fix rename error 2014-03-14 00:19:15 +01:00
Romain Bignon
266300ab65 add UrlNotResolvable exception when URL.build can't resolve url with keywords 2014-03-13 22:06:47 +01:00
Laurent Bachelier
fca0ab8733 Quick and dirty -a and -I support for Browser2 2014-03-13 22:04:20 +01:00
Romain Bignon
d472fd6eec fix crash 2014-03-13 21:45:34 +01:00
Romain Bignon
4cffb3038b raise errors on responses 2014-03-13 21:34:18 +01:00
Romain Bignon
9724dcf461 add URL.id2url decorator 2014-03-13 21:27:59 +01:00
Romain Bignon
bf8675c88b PagesBrowser.open and PagesBrowser.location always return a Response object 2014-03-13 21:27:59 +01:00
Bezleputh
eefe784352 [browser2] put ListElement call parameters in self.param 2014-03-13 20:20:03 +01:00
Bezleputh
7d59640712 [browser2] add a validate method in order to check objet before returning him 2014-03-13 20:20:03 +01:00
Johann Broudin
0f1726d01c add ssl proxy support to browser and browser2 and add the option _proxy_ssl 2014-03-13 20:20:02 +01:00
Johann Broudin
cafd6c8f05 Add proxy support to browser2 2014-03-13 20:20:02 +01:00