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

Bugfix/scrape all ld json objects #216

Closed

Conversation

bugkarma
Copy link

Some pages have more than one ld+json object. This PR will add an array of all LD JSON objects while keeping backwards compatibility with the current ldJson property.

Example page with multiple LD JSON objects: https://www.homedepot.com/p/NewAir-Beverage-Froster-22-in-125-12-oz-Can-Freestanding-Cooler-Beverage-Fridge-Chills-Down-to-23-w-Party-and-Turbo-Mode-NBF125BK00/313138626

@jshemas
Copy link
Owner

jshemas commented Mar 27, 2024

Hello, thanks for the PR! I just added support for JSON LD in my last update and I think this is just a bug because I wasn't aware it was valid to have more then one JSON LD tag on a page. Can you reuse the existing jsonLD property?

Copy link
Owner

Choose a reason for hiding this comment

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

Can you remove this file?

@jshemas
Copy link
Owner

jshemas commented Apr 7, 2024

Hello, I need to update this package and have addressed this problem in [email protected]. Closing this PR since it's no longer needed.

@jshemas jshemas closed this Apr 7, 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.

2 participants