Repository navigation
Fix: E-E-A-T "Pages with Author Info" always 0, author lost on reload - #119
Open
erikvanberkum wants to merge 1 commit into
Open
erikvanberkum wants to merge 1 commit into
erikvanberkum wants to merge 1 commit into
Conversation
The E-E-A-T plugin checked url.meta_author, which the crawler never sets: <meta name="author"> is stored as `author` (and meta_tags.author). The plugin now checks author, meta_tags.author, og:author and an `author` in JSON-LD (also inside @graph). crawled_urls had no author column, so saved and resumed crawls lost it. Add the column, a migration for existing databases, and save it in save_url_batch(). New fixture test: test_author_survives_reload. Fixes PhialsBasement#118 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #118. A minimal, conflict-free version of the author fix in #72, rebased on current
mainand without the unrelated i18n, Docker and template changes.Problem
The E-E-A-T tab always shows 0 "Pages with Author Info":
web/static/plugins/e-e-a-t.jschecksurl.meta_author, which the crawler never sets.SEOExtractor.extract_meta_tagsstores<meta name="author">asauthor(and inmeta_tags.author).crawled_urlshas noauthorcolumn, so a saved or resumed crawl losesauthoron reload.Changes
hasAuthor(url):url.author,meta_tags.author(crawls saved before this change),og_tags.author, or anauthoranywhere in the JSON-LD, including inside@graph(Yoast and Rank Math put it there).author TEXTin the schema, anALTER TABLEmigration for existing databases (same pattern as the other migrations), andauthorinsave_url_batch().test_author_survives_reload: the meta author fills the row, survives save + reload, and an older database gains the column. It fails on currentmainand passes with this change. Full suite: 154 passed, 0 failed.Not in this PR
keywords,generatorandtheme_colorare also missing fromcrawled_urls(fix: author field not extracted, stored, or counted #72 adds them). The same pattern applies, but they don't affect the E-E-A-T score, so this PR leaves them for a separate change.<link rel="author">extraction from fix: author field not extracted, stored, or counted #72 gives a URL rather than a name. I left it out to keep this PR small.🤖 Generated with Claude Code