mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-21 08:06:27 -04:00
convert clickGetPDFs and noguchi to jinja2
This commit is contained in:
parent
422a5ad726
commit
3922258c50
@ -39,11 +39,11 @@
|
||||
request_idle_timeout_sec: 10
|
||||
-
|
||||
url_regex: '^https?://catalogue\.noguchi\.org/index.php/LoginReg/form$'
|
||||
behavior_js_template: noguchi.js.template
|
||||
behavior_js_template: noguchi.js.j2
|
||||
request_idle_timeout_sec: 10
|
||||
-
|
||||
url_regex: '^https?://catalogue\.noguchi\.org/index.php/Search/Index/search/.*/target/ca_.*$'
|
||||
behavior_js_template: noguchi.js.template
|
||||
behavior_js_template: noguchi.js.j2
|
||||
request_idle_timeout_sec: 10
|
||||
-
|
||||
url_regex: '^https?://(?:www\.)?huffingtonpost\.com/.*$'
|
||||
|
@ -37,7 +37,7 @@ var umbraAboveBelowOrOnScreen = function(e) {
|
||||
var umbraState = {'idleSince':null};
|
||||
var umbraAlreadyClicked = {'2016':true};
|
||||
|
||||
var clickTargets = document.querySelectorAll("${css_selector}");
|
||||
var clickTargets = document.querySelectorAll({{css_selector|json}});
|
||||
|
||||
var pdfSelector = "a";
|
||||
|
@ -17,8 +17,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
var UMBRA_N_USER_NAME = "${parameter_username}";
|
||||
var UMBRA_N_PASSWORD = "${parameter_password}";
|
||||
var UMBRA_N_USER_NAME = {{parameter_username|json}};
|
||||
var UMBRA_N_PASSWORD = {{parameter_password|json}};
|
||||
|
||||
var umbraState = {'idleSince': null};
|
||||
var re = /(?:Previous){0,1}\s+(page\s(\d+)\/\d+)\s+(?:Next){0,1}/;
|
Loading…
x
Reference in New Issue
Block a user