Commit graph

21 commits

Author SHA1 Message Date
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
62adf86daa add JSON helpers 2015-05-07 14:32:55 +02:00
Romain Bignon
be122f0fa6 add 'replace' xpath function 2015-03-12 15:22:42 +01:00
Laurent Bachelier
677cc18524 browser: Add an absurl method to Page 2015-03-02 15:48:37 +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
Romain Bignon
0445c92a77 handle "Refresh"" meta tag 2015-02-21 17:49:21 +01:00
Florent
656440b5ee Add argument for compatibility with python 2.6
Closes: #1651
2014-11-18 22:43:43 +01:00
Bezleputh
dec5789e37 detect xml encoding 2014-10-22 11:46:15 +02:00
smurail
137590e819 fix wrong encoding detection logic 2014-10-22 11:38:28 +02:00
smurail
977f5a9f02 cleaner way to get rid of BOM for CsvPage 2014-10-20 17:13:01 +02:00
smurail
a6a7130b31 add ChecksumPage mixin 2014-10-20 17:13:01 +02:00
smurail
237036ce3e new api for content, encoding, and document building 2014-10-20 17:13:01 +02:00
Laurent Bachelier
3fcfc9a980 form: Add comments 2014-10-19 00:28:43 +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
Laurent Bachelier
23b4cc909f Add has-class xpath function
Taken from https://gist.github.com/shirk3y/458224083ce5464627bc
2014-10-10 10:09:14 +02:00
Romain Bignon
22c436bcb8 documentation 2014-10-08 17:10:13 +02:00
Romain Bignon
65ece349db HTMLPage checks the inner charset and parse again document if it is not the same than Content-Type HTTP header 2014-10-08 15:42:58 +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