codelucas / codelucas/newspaper

Additional entry for PUBLISH_DATE_TAGS

Open
#151 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
15.2k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

I've encountered some news articles with the following metadata tags:

http://abcnews.go.com/Politics/jeb-bush-heads-europe-things-expect-trip/story?id=31635735
<meta itemprop="datepublished" content="2015-06-09T17:02:00Z">

http://www.wsj.com/articles/jeb-bush-challenges-russia-to-respect-its-neighbors-1433867078
<meta itemprop="datePublished" content="2015-06-09T19:55:00.000Z">

I would propose adding an additional entry to PUBLISH_DATE_TAGS in extractors.py, get_publishing_date():

{'attribute': 'itemprop', 'value': 'datePublished', 'content': 'content'}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in extractors.py at PUBLISH_DATE_TAGS and get_publishing_date(). Check how the existing metadata patterns are matched, then verify the datePublished examples in the issue are recognized. Done means both capitalization variants produce the article publication date without breaking existing extraction behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.