mirror of
https://github.com/matthewmueller/x-ray.git
synced 2026-04-03 00:28:41 -06:00
Conditional redirect? #124
Labels
No labels
bug
bug
docs
duplicated
enhancement
enhancement
enhancement
enhancement
feature
feature
help wanted
question
ready for contributor
stale
tech support
tech support
tech support
tech support
tech support
tech support
tech support
tech support
tech support
tech support
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github/x-ray#124
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FezVrasta on 12/30/2017
Subject of the issue
I'm scraping a page that requires the user to click on a "thanks" button before I can access the info I'm looking for.
If the page has already been "thanked", an "unthank" button will be shown instead. I don't want the scraper to click on the "unthank" obviously.
Right now I'm using a code of this kind:
The problem with this setup is that I will always have to navigate to an additional page even when the page is already "thanked".
Ideally I'd like to be able to tell x-ray to not navigate to anything but just stay in the same page if the provided URL is maybe
undefinedorfalse.Doing so I could have my filter do
url.includes('thank') ? url : false, which will make the scraper hit the thank call only if needed.Is it possible? If not, could this be added?