forked from deepset-ai/haystack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved crawler support for dynamically loaded pages
- Loading branch information
1 parent
325bc54
commit f028331
Showing
4 changed files
with
131 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Test Dynamic Page</title> | ||
</head> | ||
<body> | ||
<p>home page content</p> | ||
<a href="index.html" id="a1">link to index</a> | ||
<a href="page_w_hidden_text.html" id="a2">link to page with hidden text</a> | ||
<a href="page1.html" id="a3">link to page 1</a> | ||
<a href="page2.html" id="a4">link to page 2</a> | ||
<script> | ||
const removeTimeout = setTimeout(myRemoveFunction, 150); | ||
|
||
function myRemoveFunction() { | ||
const elem = document.querySelector('#a2') | ||
elem.parentNode.removeChild(elem) | ||
clearTimeout(removeTimeout); | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Test Dynamic Page</title> | ||
</head> | ||
<body> | ||
<p>home page content</p> | ||
<a href="index.html" id="a1">link to index</a> | ||
|
||
<a href="page1.html" id="a3">link to page 1</a> | ||
<a href="page2.html" id="a4">link to page 2</a> | ||
<script> | ||
const removeTimeout = setTimeout(myRemoveFunction, 150); | ||
|
||
function myRemoveFunction() { | ||
const elem = document.querySelector('#a2') | ||
elem.parentNode.removeChild(elem) | ||
clearTimeout(removeTimeout); | ||
} | ||
</script> | ||
</body> | ||
</html> |