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

Do not try to fetch wikidata ids for links not pointing to articles #47

Open
ondenman opened this issue Apr 19, 2017 · 0 comments
Open

Comments

@ondenman
Copy link
Contributor

Some articles have links that do not link to files. Since these aren't wikipedia articles, they won't have associated wikidata ids.

Example

When scraping the article for 'cat' for ids, the fetcher logs this warning:
......Can't find Wikidata IDs for: e, Play media, En-Cat (part 1).ogg, En-Cat (part 2).ogg, En-Cat (part 3).ogg in en

Play media is a transport control whilst the latter three links point to sound files.

Fix

Links to files can be filtered out by looking for File: in the URL. For example, the article for Theresa May contains a link to an image of her signature: https://en.wikipedia.org/wiki/File:Signature_of_Theresa_May.svg

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

No branches or pull requests

1 participant