Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addLink: support dynamic links added from behaviors #69

Merged
merged 2 commits into from Feb 29, 2024

Conversation

ikreymer
Copy link
Member

@ikreymer ikreymer commented Feb 28, 2024

autoscroll:

  • detect if page url (pathname, not hash) changes when scrolling and abort scroll
  • support link extraction via addLink(), if available
  • add newly changed URL for future crawling with addLink()

general:

  • allow behaviors to run in top replay frame (if running within wombat-based replay system) by checking _WB_replay_top as alternative to window.top

bump to 0.5.3

autoscroll:
- detect if page url (pathname, not hash) changes when scrolling and abort scroll
- call addLink() with new page url
support running main behavior in replay top frame
src/index.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@tw4l tw4l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments, otherwise looks good

@ikreymer ikreymer merged commit b5b358a into main Feb 29, 2024
7 checks passed
@ikreymer ikreymer deleted the autoscroll-stop-on-change-url branch February 29, 2024 06:12
ikreymer added a commit to webrecorder/browsertrix-crawler that referenced this pull request Feb 29, 2024
Requires webrecorder/browsertrix-behaviors#69 / browsertrix-behaviors
0.5.3, which will add support for behaviors to add links.

Simplify adding links by simply adding the links directly, instead of
batching to 500 links. Errors are already being logged in queueing a new
URL fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants