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

Adjust duplicate handling in xpath scraper #5100

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

jkt260037
Copy link

@jkt260037 jkt260037 commented Jul 27, 2024

To improve scraper flexibility by allowing duplicates when needed.
For example, for //a/@data-gender, the result should be ['male', 'female', 'female'] instead of ['male', 'female'].

<a href="/test1" data-gender="male">A</p>
<a href="/test2" data-gender="female">B</p>
<a href="/test3" data-gender="female">C</p>

@jkt260037 jkt260037 changed the title Add Duplicate Handling in xPath Scraper Add duplicate handling in xpath scraper Jul 27, 2024
@jkt260037 jkt260037 changed the title Add duplicate handling in xpath scraper Adjust duplicate handling in xpath scraper Jul 27, 2024
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.

1 participant