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

News Corp Australia: Scraping updates for more recent website editions #3071

Merged
merged 2 commits into from
Jul 14, 2023

Conversation

zoe-translates
Copy link
Collaborator

  • Update the selectors for breadcrumb navigation (for section title), and stop using lastChild which can be a text node.
  • Use page URL directly as the URL field, because URL in JSON data may point to a different domain.
  • Prefer title scraped from page body, because the one from JSON data may fail to match the former, possibly due to social media SEO.
  • More robust determination of authors, accounting for different data formats across different sites.

See also:
https://forums.zotero.org/discussion/105950/attempt-to-save-using-embedded-metadata

- Update the selectors for breadcrumb navigation (for section title),
  and stop using lastChild which can be a text node.
- Use page URL directly as the URL field, because URL in JSON data may
  point to a different domain.
- Prefer title scraped from page body, because the one from JSON data
  may fail to match the former, possibly due to social media SEO.
- More robust determination of authors, accounting for different data
  formats across different sites.

See also:
https://forums.zotero.org/discussion/105950/attempt-to-save-using-embedded-metadata
Copy link
Member

@AbeJellinek AbeJellinek left a comment

Choose a reason for hiding this comment

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

Looks good, thanks. One question/suggestion.

News Corp Australia.js Outdated Show resolved Hide resolved
@AbeJellinek AbeJellinek merged commit 4c8a8d0 into zotero:master Jul 14, 2023
1 check passed
adam3smith pushed a commit to adam3smith/translators that referenced this pull request Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants