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

Intelligently handle multiple links to the same document #78

Open
wo opened this issue May 25, 2016 · 0 comments
Open

Intelligently handle multiple links to the same document #78

wo opened this issue May 25, 2016 · 0 comments

Comments

@wo
Copy link
Owner

wo commented May 25, 2016

A repository can have several links to the same paper, with slightly different URLs. E.g. philpapers has a "direct download" link, a link to the philpapers coverpage for the paper, and another link to a sub-anchor of that page. Right now I follow each link and process the paper three times.

An obvious partial fix would be to only process documents if their URL is new. (I should do that anyway.) It's only a partial fix to the present problem because it doesn't help with cases where the multi-linked document is not a philosophy paper: then I don't store anything in the 'docs' table. Having a separate 'locations' table would be the clearest solution here. Another possibility is to store links from intermediate pages in the 'links' table, possibly flagging (in a new column) that they are not links to be found on the original source page. Before processing a link, I could then check that it's not already in the table.

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