Chris Mayo
a15a2833ca
Remove spaces after names in class method definitions
...
And also nested functions.
This is a PEP 8 convention, E211.
2020-05-16 20:19:42 +01:00
Chris Mayo
1663e10fe7
Remove spaces after names in function definitions
...
This is a PEP 8 convention, E211.
2020-05-16 20:19:42 +01:00
Chris Mayo
fc11d08968
Remove spaces after names in class definitions
2020-05-16 20:19:42 +01:00
Chris Mayo
dcbddfe045
Remove Python 2 ConfigParser import
2020-05-15 19:37:04 +01:00
Chris Mayo
42de609f8e
Make urllib imports Python 3 only
2020-05-14 20:15:28 +01:00
Chris Mayo
736c893707
Merge pull request #377 from cjmayo/tidyten3
...
Remove u string prefixes
2020-05-13 19:36:54 +01:00
Chris Mayo
44e81d27dd
Remove inheriting object
...
All Python 3 classes are new-style.
2020-05-08 10:45:31 +01:00
Chris Mayo
b0ea72e8c1
Remove # -*- coding: lines
...
Except for tests that include non-unicode characters:
tests/test_po.py
tests/test_strformat.py
tests/test_url.py
tests/checker/test_error.py
tests/checker/test_news.py
2020-05-08 10:45:31 +01:00
Chris Mayo
4d3e5abcfa
Remove u string prefixes
2020-04-30 20:11:59 +01:00
Chris Mayo
f5e7f3a382
Remove use of the future package
...
It was providing Python 2 compatibility.
2020-04-15 19:49:16 +01:00
Chris Mayo
0ee4414a60
Replace memoized with functools.lru_cache
2020-03-31 19:46:31 +01:00
Chris Mayo
20e11f1b1f
Remove configuration.DonateUrl
2019-04-21 19:44:18 +01:00
EsuS
004632a99b
Update references to GitHub project from wummel to linkchecker
...
Remove all mention of donations.
2019-04-18 19:59:52 +01:00
Petr Dlouhý
8f4acc3168
Python3: use str and basestring from builtins
2019-04-16 20:08:29 +01:00
Petr Dlouhý
2985e9ae65
Use Python 3 compatible octal masks
2019-04-13 20:37:39 +01:00
regexaurus
50a9ff65b8
Updated support (issues) URL
2018-08-03 00:53:47 -04:00
Petr Dlouhý
a1b300c892
Python3: fix imports
2018-01-19 09:52:43 +01:00
Reinhold Füreder
e864bbdabf
Use os.makedirs(...) instead of os.mkdir(...)
2018-01-03 11:33:53 +01:00
Félix Sipma
c8d9038ae8
improve get_plugin_folders() docstring
2017-10-18 15:58:18 +02:00
Félix Sipma
deca8c667e
introduce linkcheck.configuration.get_user_data()
2017-10-18 15:55:55 +02:00
Félix Sipma
a03e2e4ada
use xdg dirs for config & data
...
~/.linkchecker is used instead of the xdg equivalents if the directory
exists (backward compatibility).
2017-10-17 18:48:07 +02:00
Marius Gedminas
3c99b6aa30
Fix TypeError: hasattr(): attribute name must be string
...
The one test failure in Travis happens in
TestConsole.test_internal_error, but only if you have the argcomplete
package installed.
This was a real bug in error reporting code.
2017-02-01 16:02:35 +02:00
Antoine Beaupré
9d899d1dfa
add --no-robots commandline flag
...
While this flag can be abused, it seems to me like a legitimate use
case that you want to check a fairly small document for mistakes,
which includes references to a website which has a robots.txt that
denies all robots. It turns out that most websites do *not* add a
permission for LinkCheck to use their site, and some sites, like the
Debian BTS for example, are very hostile with bots in general.
Between me using linkcheck and me using my web browser to check those
links one by one, there is not a big difference. In fact, using
linkcheck may be *better* for the website because it will use HEAD
requests instead of a GET, and will not fetch all page elements
(javascript, images, etc) which can often be fairly big.
Besides, hostile users will patch the software themselves: it took me
only a few minutes to disable the check, and a few more to make that
into a proper patch.
By forcing robots.txt without any other option, we are hurting our
good users and not keeping hostile users from doing harm.
The patch is still incomplete, but works. It lacks: documentation and
unit tests.
Closes : #508
2016-05-19 14:43:59 -04:00
Bastian Kleineidam
0ef00eea56
Move GUI files to separate project
2016-01-23 13:28:15 +01:00
Bastian Kleineidam
35eb30432e
Added some Python3 fixes.
2014-09-12 19:36:30 +02:00
Bastian Kleineidam
697e7b82e1
Search for system certs
2014-09-11 21:19:49 +02:00
Bastian Kleineidam
c8df9355f0
Try to use the SSL certs from the certifi package.
2014-09-05 20:00:30 +02:00
Bastian Kleineidam
29193bbcc9
Fix login URL cookies and don't sanitize after config reading.
2014-07-15 22:23:38 +02:00
Bastian Kleineidam
90257a1b5e
Replace twill with custom code.
2014-07-15 18:37:05 +02:00
Bastian Kleineidam
eaa8a963ec
Refactor logging configuration.
2014-05-10 21:23:06 +02:00
Bastian Kleineidam
0ad5969b54
Simplify config dir functions.
2014-03-11 20:23:49 +01:00
Bastian Kleineidam
41d07729bb
Install certificate store with installers.
2014-03-10 22:34:37 +01:00
Bastian Kleineidam
57edf0923e
Updated copyright year
2014-03-10 19:27:22 +01:00
Bastian Kleineidam
102837b875
Set maximum redirects
2014-03-06 21:58:35 +01:00
Bastian Kleineidam
39df1812c7
Default to 10 threads instead of 100.
2014-03-01 20:49:06 +01:00
Bastian Kleineidam
7b34be590b
Introduce check plugins, use Python requests for http/s connections, and some code cleanups and improvements.
2014-03-01 00:12:34 +01:00
Bastian Kleineidam
c806be5c15
Updated copyright
2014-01-08 22:33:04 +01:00
Bastian Kleineidam
fbbced4d8f
Fix tests
2013-12-13 07:39:59 +01:00
Bastian Kleineidam
5151e68a3e
Fix logger config
2013-12-13 07:37:21 +01:00
Bastian Kleineidam
103e00b4d1
Allow disabling of ssl certificate checks.
2013-12-12 22:17:57 +01:00
Bastian Kleineidam
5736987b60
Refactor output loggers.
2013-12-11 18:41:55 +01:00
Bastian Kleineidam
a7c1cdd6f6
Check for help files.
2013-12-10 20:56:26 +01:00
Bastian Kleineidam
134db22830
Updated homepage URL.
2013-04-09 20:11:04 +02:00
Bastian Kleineidam
123578a4cd
Make per-host connection limits configurable.
2013-02-27 19:37:28 +01:00
Bastian Kleineidam
b38317d57b
Replace optparse with argparse.
2013-02-27 19:35:44 +01:00
Bastian Kleineidam
64d95e45e0
Remove local HTML and CSS syntax check.
2013-02-08 21:36:02 +01:00
Bastian Kleineidam
faa743e876
Increase per-host connection limits.
2013-01-22 18:18:48 +01:00
Bastian Kleineidam
65a0031c10
Updated copyright.
2013-01-06 18:12:44 +01:00
Bastian Kleineidam
16b84be490
Updated all links.
2013-01-06 18:10:13 +01:00
Bastian Kleineidam
42a17cbb98
Prepare py3 port and display sys.argv on internal errors.
2012-11-26 18:49:07 +01:00
Bastian Kleineidam
f3e52f1176
loginpasswordfield is not a password
2012-11-08 22:11:35 +01:00
Bastian Kleineidam
2d6cfb238f
Add trailing dot when creating user configuration directory on Windows.
2012-11-07 18:22:07 +01:00
Bastian Kleineidam
3a51ac7662
Warn about accessible passwords in config files.
2012-10-15 14:36:10 +02:00
Bastian Kleineidam
8750d55a73
Add configuration entry for maximum number of URLs.
2012-10-14 11:13:55 +02:00
Bastian Kleineidam
f484a6776d
Use timeout value from configuration.
2012-10-10 10:53:52 +02:00
Bastian Kleineidam
3e464e509c
Do not allow empty configuration string values.
2012-09-21 16:05:34 +02:00
Bastian Kleineidam
ecf8753a19
Improved user-agent string similar to Google and Bing search bots.
2012-09-21 15:46:14 +02:00
Bastian Kleineidam
f46889a4af
Log timestamps in debug output.
2012-09-21 13:05:36 +02:00
Bastian Kleineidam
71fba0f8b7
Log all valid URLs in sitemap loggers.
2012-09-19 09:17:08 +02:00
Bastian Kleineidam
932a07a9cf
Added XML sitemap logger.
2012-09-18 09:16:34 +02:00
Bastian Kleineidam
0b5b6ab37b
Automatically set --complete for graph output.
2012-09-15 15:06:29 +02:00
Bastian Kleineidam
6730fb51ee
Allow maximum check time specification.
2012-09-03 20:17:49 +02:00
Bastian Kleineidam
99ab68908c
Increase the default number of checker threads.
2012-08-23 16:11:47 +02:00
Bastian Kleineidam
02a9f0bacb
Add utility method to read string options.
2012-08-23 04:52:25 +02:00
Bastian Kleineidam
2888528a13
Code cleanup.
2012-06-20 20:11:13 +02:00
Bastian Kleineidam
4cce99a77d
Test SSL certificate expiration.
2012-06-20 20:10:40 +02:00
Bastian Kleineidam
cbb13a8983
Add SSL certificate verification.
2012-06-18 23:05:44 +02:00
Bastian Kleineidam
b0694ddfa7
Add meliae to optional module list.
2012-06-18 22:39:07 +02:00
Bastian Kleineidam
00aa631267
Add localwebroot configuration option.
2012-06-10 14:47:27 +02:00
Bastian Kleineidam
2dee223555
Allow memory dumps to be written.
2012-06-10 13:18:35 +02:00
Bastian Kleineidam
3ebe5708db
Code cleanup: add function for boolean option settings.
2012-06-10 11:22:54 +02:00
Bastian Kleineidam
9273b9e8af
Fix configdata attribute name.
2012-05-23 21:15:30 +02:00
Bastian Kleineidam
90a0f4b51e
Detect pygeoip library on Windows.
2012-05-10 06:45:29 +02:00
Bastian Kleineidam
1ab2e2c1a9
Use mkdir() instead of makedirs() for user configuration directory. Also fix logging on errors copying the user configuration.
2012-04-22 20:42:39 +02:00
Bastian Kleineidam
52dcf101e0
Remove rest of deprecated options.
2012-04-22 17:55:12 +02:00
Bastian Kleineidam
d6d82b96f1
Add cookiefile config option.
2012-03-22 22:29:56 +01:00
Bastian Kleineidam
3b818d99c0
Allow --pause to be set in configuration file.
2012-03-16 21:28:30 +01:00
Bastian Kleineidam
71f5ee42c8
Updated copyright.
2012-01-29 17:18:28 +01:00
Bastian Kleineidam
b5852683ab
Do not write userconfig in portable mode.
2012-01-23 22:24:51 +01:00
Bastian Kleineidam
042b0569ec
Fall back to W3C checkers.
2012-01-22 08:13:27 +01:00
Bastian Kleineidam
51cf55b7a6
Remove warning: prefix from warning messages.
2012-01-21 00:25:02 +01:00
Bastian Kleineidam
f1eb51d885
Updated copyright
2012-01-06 09:21:30 +01:00
Bastian Kleineidam
9b437fd1e4
Use dictionary-based logging config.
2012-01-04 21:07:35 +01:00
Bastian Kleineidam
61f9f31de2
Make copy from loggerclass dict.
2011-12-17 20:54:30 +01:00
Bastian Kleineidam
76eddb62a8
Properly detect home directory on OS X systems.
2011-11-05 12:03:55 +01:00
Bastian Kleineidam
74ea444a9a
Parse logger and logging part names case insensitive.
2011-10-10 20:32:58 +02:00
Bastian Kleineidam
e71d441ce6
Raise correct error messages for configuration errors.
2011-10-09 21:45:56 +02:00
Bastian Kleineidam
89ec0ee6a1
Check multiple matches of warning regex.
2011-10-09 19:00:35 +02:00
Bastian Kleineidam
752941e029
Ignore AttributeError when printing the Qt version.
2011-07-25 21:15:52 +02:00
Bastian Kleineidam
51bcccfdfe
Added new option --user-agent to set the User-Agent header.
2011-07-25 21:09:49 +02:00
Bastian Kleineidam
e3bb574997
Remove support for system configuration file.
2011-05-20 21:10:31 +02:00
Bastian Kleineidam
343cf9703d
Code cleanup: indentation, unused variables etc.
2011-05-15 18:36:30 +02:00
Bastian Kleineidam
f8cba79875
Display release date in about dialog.
2011-05-05 18:30:58 +02:00
Bastian Kleineidam
f61de7902a
Report QScintilla as extra module.
2011-04-26 14:57:32 +02:00
Bastian Kleineidam
719441cca5
Make module detection more robust and use it when possible.
2011-04-20 09:08:11 +02:00
Bastian Kleineidam
836e8a700d
Print detected modules information.
2011-04-14 12:20:56 +02:00
Bastian Kleineidam
8b2fa88f18
Print gconf errors only in debug mode.
2011-03-25 13:34:48 +01:00
Bastian Kleineidam
64a488aaf3
Added copyright and license information.
2011-03-11 18:03:14 +01:00
Bastian Kleineidam
8e0fe33edb
Improved error handling for proxy configuration functions.
2011-03-10 09:34:42 +01:00
Bastian Kleineidam
31d4f04fd2
Support reading GNOME and KDE proxy settings.
2011-03-09 10:49:18 +01:00