summaryrefslogtreecommitdiff
path: root/tests/unit/test_utils.py
diff options
context:
space:
mode:
authorDalf <alex@al-f.net>2019-07-25 07:59:54 +0200
committerDalf <alex@al-f.net>2019-07-29 07:39:39 +0200
commit6e0285b2db8e96b98a7348e973d399297a039f10 (patch)
treec661ce2de7983c6351cd2687e45be51795dedaae /tests/unit/test_utils.py
parentcbc5e13275fe3ea5bbab2c7665432398d2179c24 (diff)
[fix] wikidata engine: faster processing, remove one HTTP redirection.
* Search URL is https://www.wikidata.org/w/index.php?{query}&ns0=1 (with ns0=1 at the end to avoid an HTTP redirection) * url_detail: remove the disabletidy=1 deprecated parameter * Add eval_xpath function: compile once for all xpath. * Add get_id_cache: retrieve all HTML with an id, avoid the slow to procress dynamic xpath '//div[@id="{propertyid}"]'.replace('{propertyid}') * Create an etree.HTMLParser() instead of using the global one (see #1575)
Diffstat (limited to 'tests/unit/test_utils.py')
0 files changed, 0 insertions, 0 deletions