mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-09-20 12:44:40 -04:00
convert clickGetPDFs and noguchi to jinja2
This commit is contained in:
parent
422a5ad726
commit
3922258c50
3 changed files with 5 additions and 5 deletions
|
@ -39,11 +39,11 @@
|
||||||
request_idle_timeout_sec: 10
|
request_idle_timeout_sec: 10
|
||||||
-
|
-
|
||||||
url_regex: '^https?://catalogue\.noguchi\.org/index.php/LoginReg/form$'
|
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
|
request_idle_timeout_sec: 10
|
||||||
-
|
-
|
||||||
url_regex: '^https?://catalogue\.noguchi\.org/index.php/Search/Index/search/.*/target/ca_.*$'
|
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
|
request_idle_timeout_sec: 10
|
||||||
-
|
-
|
||||||
url_regex: '^https?://(?:www\.)?huffingtonpost\.com/.*$'
|
url_regex: '^https?://(?:www\.)?huffingtonpost\.com/.*$'
|
||||||
|
|
|
@ -37,7 +37,7 @@ var umbraAboveBelowOrOnScreen = function(e) {
|
||||||
var umbraState = {'idleSince':null};
|
var umbraState = {'idleSince':null};
|
||||||
var umbraAlreadyClicked = {'2016':true};
|
var umbraAlreadyClicked = {'2016':true};
|
||||||
|
|
||||||
var clickTargets = document.querySelectorAll("${css_selector}");
|
var clickTargets = document.querySelectorAll({{css_selector|json}});
|
||||||
|
|
||||||
var pdfSelector = "a";
|
var pdfSelector = "a";
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var UMBRA_N_USER_NAME = "${parameter_username}";
|
var UMBRA_N_USER_NAME = {{parameter_username|json}};
|
||||||
var UMBRA_N_PASSWORD = "${parameter_password}";
|
var UMBRA_N_PASSWORD = {{parameter_password|json}};
|
||||||
|
|
||||||
var umbraState = {'idleSince': null};
|
var umbraState = {'idleSince': null};
|
||||||
var re = /(?:Previous){0,1}\s+(page\s(\d+)\/\d+)\s+(?:Next){0,1}/;
|
var re = /(?:Previous){0,1}\s+(page\s(\d+)\/\d+)\s+(?:Next){0,1}/;
|
Loading…
Add table
Add a link
Reference in a new issue