codelucas / codelucas/newspaper
Additional entry for PUBLISH_DATE_TAGS
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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